Compares two string segments.
public static int Compare(StringSegment segmentA, StringSegment segmentB,
StringComparison comparison)
parameter | description |
---|---|
segmentA | The first segment. |
segmentB | The second segment. |
comparison | The string comparison options. |
Zero, a positive integer, or a negative integer, if the first segment is equal to, greater than, or less than the second segment, respectively.