ChronoEngine_SwAddin.SWTaskpaneHost.myBytearrayHashComparer.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( object x ) : int
x object
return int
            public int GetHashCode(object x)
            {
                byte[] obj = (byte[])x;
                if (obj == null || obj.Length == 0)
                    return 0;
                var hashCode = 0;
                for (var i = 0; i < obj.Length; i++)
                    // Rotate by 3 bits and XOR the new value.
                    hashCode = (hashCode << 3) | (hashCode >> (29)) ^ obj[i];
                return hashCode;
            }
SWTaskpaneHost.myBytearrayHashComparer