EqualityComparer<T>.IEqualityComparer.GetHashCode(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會回傳指定物件的雜湊碼。
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
參數
傳回
指定物件的雜湊碼。
實作
例外狀況
備註
此方法是方法的包裝器 GetHashCode(T) ,因此 obj 必須是可被當前實例的通用型別參數 T 所指定的型別。