Click or drag to resize
StringEndsWith Method (String, Boolean, CultureInfo)
Determines whether the end of this string instance matches the specified string when compared using the specified culture.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: Boolean
true if the value parameter matches the end of this string; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
See Also