WowPacketParser.Misc.WowGuid.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( ) : int
return int
        public override int GetHashCode()
        {
            return new { Low, High }.GetHashCode();
        }

Usage Example

Example #1
0
        public void TestGetHashCode()
        {
            var guid1 = new WowGuid(0xF130005C0500105F);
            var guid15 = new WowGuid(0xF130005C0500105F);
            var guid2 = new WowGuid(0x600000002B2D7C9);

            Assert.AreEqual(guid1.GetHashCode(), guid15.GetHashCode());
            Assert.AreNotEqual(guid1.GetHashCode(), guid2.GetHashCode());
        }