コード例 #1
0
ファイル: FeeRate.cs プロジェクト: biblepay/foundation
        public int CompareTo(object obj)
        {
            if (obj == null)
            {
                return(1);
            }
            var m = obj as FeeRate;

            if (m != null)
            {
                return(this._FeePerK.CompareTo(m._FeePerK));
            }
#if !NETCORE
            return(_FeePerK.CompareTo(obj));
#else
            return(this._FeePerK.CompareTo((long)obj));
#endif
        }
コード例 #2
0
 public int CompareTo(FeeRate other)
 {
     return(other is null
                         ? 1
                         : _FeePerK.CompareTo(other._FeePerK));
 }