Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Datatypes.ColorTests
1 unit tests call DeltaEngine.Datatypes.Color.GetHashCode
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Return Value
Type: Int32Remarks
Examples
[Test] public void Equals() { var color1 = new Color(10, 20, 30, 40); var color2 = new Color(20, 30, 40, 50); Assert.AreNotEqual(color1, color2); Assert.AreEqual(color1, new Color(10, 20, 30, 40)); Assert.IsTrue(color1 == new Color(10, 20, 30, 40)); Assert.IsTrue(color1 != color2); Assert.IsTrue(color1.Equals((object)new Color(10, 20, 30, 40))); Assert.AreEqual(color1.PackedRgba, color1.GetHashCode()); }
See Also