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
xStringSegmentThe first object of type
Tto compare.yStringSegmentThe second object of type
Tto compare.
Returns
GetHashCode(StringSegment)
Returns a hash code for the specified object.
public int GetHashCode(StringSegment obj)
Parameters
objStringSegmentThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.