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