Point3D.GetHashCode Method ()


Returns a hash code for this Point3D structure.

Namespace:   System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public override int GetHashCode()

Return Value

Type: System.Int32

A hash code for this Point3D structure.

The following example shows how to get the hash code of a Point3D structure.

// 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);

.NET Framework
Available since 3.0
Return to top