Class SpanCharactersIgnoreCaseComparer
public class SpanCharactersIgnoreCaseComparer : IEqualityComparer<ReadOnlyMemory<char>>
- Inheritance
-
SpanCharactersIgnoreCaseComparer
- Implements
- Inherited Members
Properties
Default
public static SpanCharactersIgnoreCaseComparer Default { get; }
Property Value
Methods
Equals(ReadOnlyMemory<char>, ReadOnlyMemory<char>)
Determines whether the specified objects are equal.
public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y)
Parameters
x
ReadOnlyMemory<char>The first object of type
T
to compare.y
ReadOnlyMemory<char>The second object of type
T
to compare.
Returns
GetHashCode(ReadOnlyMemory<char>)
Returns a hash code for the specified object.
public int GetHashCode(ReadOnlyMemory<char> obj)
Parameters
obj
ReadOnlyMemory<char>The 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.