ValueComparer<T>.GetHashCode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetHashCode(Object) |
回傳給定實例的雜湊碼。 |
| GetHashCode(T) |
回傳給定實例的雜湊碼。 |
GetHashCode(Object)
回傳給定實例的雜湊碼。
public override int GetHashCode(object? instance);
public override int GetHashCode(object instance);
override this.GetHashCode : obj -> int
Public Overrides Function GetHashCode (instance As Object) As Integer
參數
- instance
- Object
那個實例。
傳回
雜湊碼。
適用於
GetHashCode(T)
回傳給定實例的雜湊碼。
public virtual int GetHashCode(T instance);
override this.GetHashCode : 'T -> int
Public Overridable Function GetHashCode (instance As T) As Integer
參數
- instance
- T
那個實例。
傳回
雜湊碼。