StringSegmentEndsWith(ReadOnlySpanChar, 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: 9.0.0
C#
public bool EndsWith(
	ReadOnlySpan<char> value,
	StringComparison comparison = StringComparison.Ordinal
)

Parameters

value  ReadOnlySpanChar
The ReadOnlySpan<char> 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