StringSegmentEndsWith(StringSegment, StringComparison) Method

Gets whether this StringSegment instance ends with the specified value using the specified comparison.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public bool EndsWith(
	StringSegment value,
	StringComparison comparison = StringComparison.Ordinal
)

Parameters

value  StringSegment
The StringSegment to compare.
comparison  StringComparison  (Optional)
A StringComparison value that specifies how to perform the comparison. This parameter is optional.
Default value: Ordinal.

Return Value

Boolean
if this StringSegment ends with value; otherwise, .

See Also