Example #1
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));
        }
Example #2
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));
        }