Exemplo n.º 1
0
        // 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));
        }
Exemplo n.º 2
0
        // IEquatable<FeeRate> Members

        public bool Equals(FeeRate other)
        {
            return(other != null && FeePerK.Equals(other.FeePerK));
        }
Exemplo n.º 3
0
 public int CompareTo(FeeRate other)
 {
     return(other == null
                         ? 1
                         : FeePerK.CompareTo(other.FeePerK));
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     return(FeePerK.GetHashCode());
 }