ModelCollationComparer.GetHashCode 方法

定义

重载

名称 说明
GetHashCode(ObjectIdentifier)

获取与 Equals(ObjectIdentifier, ObjectIdentifier) 此比较器方法兼容的对象的 Hashcode

GetHashCode(IList<String>)

获取与 Equals(IList<String>, IList<String>) 此比较器方法兼容的对象的 Hashcode

GetHashCode(String)

获取与 Equals(String, String) 此比较器方法兼容的对象的 Hashcode

GetHashCode(ObjectIdentifier)

获取与 Equals(ObjectIdentifier, ObjectIdentifier) 此比较器方法兼容的对象的 Hashcode

public abstract int GetHashCode(Microsoft.SqlServer.Dac.Model.ObjectIdentifier obj);
override this.GetHashCode : Microsoft.SqlServer.Dac.Model.ObjectIdentifier -> int
Public MustOverride Function GetHashCode (obj As ObjectIdentifier) As Integer

参数

obj
ObjectIdentifier

要为其获取哈希码的对象

返回

hashcode

实现

适用于

GetHashCode(IList<String>)

获取与 Equals(IList<String>, IList<String>) 此比较器方法兼容的对象的 Hashcode

public abstract int GetHashCode(System.Collections.Generic.IList<string> obj);
override this.GetHashCode : System.Collections.Generic.IList<string> -> int
Public MustOverride Function GetHashCode (obj As IList(Of String)) As Integer

参数

obj
IList<String>

要为其获取哈希码的对象

返回

hashcode

实现

适用于

GetHashCode(String)

获取与 Equals(String, String) 此比较器方法兼容的对象的 Hashcode

public abstract int GetHashCode(string obj);
override this.GetHashCode : string -> int
Public MustOverride Function GetHashCode (obj As String) As Integer

参数

obj
String

要为其获取哈希码的对象

返回

hashcode

实现

适用于