StringSegmentEquals(StringSegment, StringSegment, StringComparison) Method

Determines whether two specified StringSegment instances have the same value using the specified comparison.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public static bool Equals(
	StringSegment a,
	StringSegment b,
	StringComparison comparison = StringComparison.Ordinal
)

Parameters

a  StringSegment
The first StringSegment to compare.
b  StringSegment
The second 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 the specified StringSegment instances are equal; otherwise, .

See Also