Point3D.GetHashCode 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回此 Point3D 结构的哈希代码。
public:
override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer
返回
此 Point3D 结构的哈希代码。
示例
以下示例演示如何获取结构的 Point3D 哈希代码。
// Gets the hashcode of a Point4D structure
Point4D point1 = new Point4D(10, 5, 1, 4);
int pointHashCode;
pointHashCode = point1.GetHashCode();
// Displaying Results
syntaxString = "pointHashCode = point1.GetHashCode();";
resultType = "int";
operationString = "Getting the hashcode of Point4D";
ShowResults(pointHashCode.ToString(), syntaxString, resultType, operationString);
' Gets the hashcode of a Point4D structure
Dim point1 As New Point4D(10, 5, 1, 4)
Dim pointHashCode As Integer
pointHashCode = point1.GetHashCode()
' Displaying Results
syntaxString = "pointHashCode = point1.GetHashCode()"
resultType = "int"
operationString = "Getting the hashcode of Point4D"
ShowResults(pointHashCode.ToString(), syntaxString, resultType, operationString)