Class StringSegmentComparer
- Namespace
- Acuit.Pinpoint.Primitives
- Assembly
- Acuit.Pinpoint.Configuration.dll
public class StringSegmentComparer : IEqualityComparer<StringSegment>
- Inheritance
-
StringSegmentComparer
- Implements
- Inherited Members
Properties
Ordinal
public static StringSegmentComparer Ordinal { get; }
Property Value
OrdinalIgnoreCase
public static StringSegmentComparer OrdinalIgnoreCase { get; }
Property Value
Methods
Equals(StringSegment, StringSegment)
Determines whether the specified objects are equal.
public bool Equals(StringSegment x, StringSegment y)
Parameters
x
StringSegmentThe first object of type
T
to compare.y
StringSegmentThe second object of type
T
to compare.
Returns
GetHashCode(StringSegment)
Returns a hash code for the specified object.
public int GetHashCode(StringSegment obj)
Parameters
obj
StringSegmentThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.