Partager via


Size3D.GetHashCode Méthode

Définition

Retourne un code de hachage pour cette structure Size3D.

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

Retours

Int32

Code de hachage pour cette structure Size3D.

Exemples

L’exemple suivant montre comment obtenir le code de hachage d’une 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);
' Gets the hashcode of a Size3D Structure

Dim size1 As New Size3D(2, 4, 6)
Dim sizeHashcode As Integer

sizeHashcode = size1.GetHashCode()

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

S’applique à