Vector.GetHashCode 方法

定义

返回此向量的哈希代码。Returns the hash code for this vector.

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

返回

此实例的哈希代码。The hash code for this instance.

示例

下面的示例演示如何获取的哈希代码VectorThe following example shows how to get the hash code of a Vector.

private int getHashCodeExample()
{
    Vector vector1 = new Vector(20, 30);
    int returnHashCode = vector1.GetHashCode();

    return returnHashCode;

}

适用于