Size3D.GetHashCode Method ()

 

Returns a hash code for this Size3D 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 Size3D structure.

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

// Gets the hashcode of a Size3D Structure

Size3D size1 = new Size3D(2, 4, 6);
int sizeHashcode;

sizeHashcode = size1.GetHashCode();

// Displaying Results
resultType = "int";
syntaxString = "sizeHashcode = size1.GetHashCode;";
operationString = "Getting the hashcode of size1";
ShowResults(sizeHashcode.ToString(), syntaxString, resultType, operationString);

.NET Framework
Available since 3.0
Return to top
Show: