// IComparable Members public int CompareTo(object obj) { if (obj == null) { return(1); } var m = obj as FeeRate; if (m != null) { return(FeePerK.CompareTo(m.FeePerK)); } return(FeePerK.CompareTo((long)obj)); }
// IEquatable<FeeRate> Members public bool Equals(FeeRate other) { return(other != null && FeePerK.Equals(other.FeePerK)); }
public int CompareTo(FeeRate other) { return(other == null ? 1 : FeePerK.CompareTo(other.FeePerK)); }
public override int GetHashCode() { return(FeePerK.GetHashCode()); }