CompilerType.GetHashCode 方法

定义

返回此实例的哈希代码。Returns the hash code for this instance.

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

返回

Int32

CompilerType 的当前实例的 32 位有符号整数哈希代码,适合在哈希算法和数据结构(如哈希表)中使用。A 32-bit signed integer hash code for the current instance of CompilerType, suitable for use in hashing algorithms and data structures, such as a hash table.

注解

GetHashCode方法将重写 Object.GetHashCode 方法。The GetHashCode method overrides the Object.GetHashCode method.

GetHashCode 根据方法为相等的两个对象生成相同的哈希代码 EqualsGetHashCode generates the same hash code for two objects that are equal according to the Equals method.

适用于

另请参阅