StringEndsWith Method (String, Boolean, CultureInfo) |
Determines whether the end of this string instance matches the specified string when compared using the specified culture.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public bool EndsWith(
string value,
bool ignoreCase,
CultureInfo culture
)
Parameters
- value
- Type: SystemString
The string to compare to the substring at the end of this instance. - ignoreCase
- Type: SystemBoolean
true to ignore case during the comparison; otherwise, false. - culture
- Type: System.GlobalizationCultureInfo
Cultural information that determines how this instance and value are compared. If culture is null, the current culture is used.
Return Value
Type:
Booleantrue if the
value parameter matches the end of this string; otherwise, false.
Exceptions See Also