EulerAngles GetHashCode Method Delta Engine Documentation

Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public override int GetHashCode()

Return Value

Type: Int32
Remarks

Tests: DeltaEngine.Tests.Datatypes.EulerAnglesTests
Examples

1 unit tests call DeltaEngine.Datatypes.EulerAngles.GetHashCode
[Test]
public void GetHashCodeViaDictionary()
{
    var first = new EulerAngles(1, 2, 3);
    var second = new EulerAngles(3, 4, 5);
    var eulerAngles = new Dictionary<EulerAngles, int> { { first, 1 }, { second, 2 } };
    Assert.IsTrue(eulerAngles.ContainsKey(first));
    Assert.IsTrue(eulerAngles.ContainsKey(second));
    Assert.IsFalse(eulerAngles.ContainsKey(new EulerAngles(5, 6, 7)));
}
See Also