public int CompareTo(object obj) { if (obj == null) { return 1; } BigInteger o = obj as BigInteger; if (object.ReferenceEquals(o, null)) { throw new ArgumentException(MathResources.ExpectedInteger); } return Compare(this, o); }
public static int Compare(BigInteger x, BigInteger y) { return x.CompareTo(y); }