StringSegmentStartsWith(String, StringComparison) Method

Gets whether this StringSegment instance starts 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 StartsWith(
	string value,
	StringComparison comparison = StringComparison.Ordinal
)

Parameters

value  String
The string 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 begins with value; otherwise, .

See Also