CompareTo() публичный Метод

public CompareTo ( ECFieldElement other ) : int
other ECFieldElement
Результат int
Пример #1
0
 /// \\
 /// 与另一对象进行比较
 /// \\
 /// \\另一对象\\
 /// \\返回比较的结果\\
 public int CompareTo(ECPoint other)
 {
   if (ReferenceEquals(this, other)) return 0;
   int result = X.CompareTo(other.X);
   if (result != 0) return result;
   return Y.CompareTo(other.Y);
 }
Пример #2
0
        /// <summary>
        /// 与另一对象进行比较
        /// </summary>
        /// <param name="other">另一对象</param>
        /// <returns>返回比较的结果</returns>
        public int CompareTo(ECPoint other)
        {
            if (ReferenceEquals(this, other))
            {
                return(0);
            }
            int result = X.CompareTo(other.X);

            if (result != 0)
            {
                return(result);
            }
            return(Y.CompareTo(other.Y));
        }