StringComparer.IEqualityComparer.GetHashCode(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a hash code for the specified object.
virtual int System.Collections.IEqualityComparer.GetHashCode(System::Object ^ obj) = System::Collections::IEqualityComparer::GetHashCode;
int IEqualityComparer.GetHashCode (object obj);
abstract member System.Collections.IEqualityComparer.GetHashCode : obj -> int
override this.System.Collections.IEqualityComparer.GetHashCode : obj -> int
Function GetHashCode (obj As Object) As Integer Implements IEqualityComparer.GetHashCode
Parameters
- obj
- Object
The object from which to obtain the hash code.
Returns
A hash code for the specified object.
Implements
Remarks
This member is an explicit interface member implementation. It can be used only when the StringComparer instance is cast to an IEqualityComparer interface.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.