XNamespace.GetHashCode 方法

定义

获取此 XNamespace 的哈希代码。Gets a hash code for this XNamespace.

public:
 override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

返回

Int32

一个 Int32,其中包含 XNamespace 的哈希代码。An Int32 that contains the hash code for the XNamespace.

注解

此方法用作 XNamespace的哈希函数。This method serves as a hash function for XNamespace. 可在哈希算法和数据结构(如哈希表)中使用 GetHashCodeYou can use GetHashCode in hashing algorithms and data structures like a hash table.

适用于

另请参阅