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
xReadOnlyMemory<char>The first object of type
Tto compare.yReadOnlyMemory<char>The second object of type
Tto compare.
Returns
GetHashCode(ReadOnlyMemory<char>)
Returns a hash code for the specified object.
public int GetHashCode(ReadOnlyMemory<char> obj)
Parameters
objReadOnlyMemory<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
objis a reference type andobjis null.