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)); }
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)); }