示例#1
0
        private static int Compare(Hash x, Hash y)
        {
            if (x == null || y == null)
            {
                throw new InvalidOperationException("Cannot compare hash when hash is null");
            }

            return(ByteStringHelpers.Compare(x.Value, y.Value));
        }
示例#2
0
        private static int Compare(Address x, Address y)
        {
            if (x == null || y == null)
            {
                throw new InvalidOperationException("Cannot compare address when address is null");
            }

            return(ByteStringHelpers.Compare(x.Value, y.Value));
        }