BigInteger::Equals Method (BigInteger)
Returns a value that indicates whether the current instance and a specified BigInteger object have the same value.
Assembly: System.Numerics (in System.Numerics.dll)
Parameters
- other
- Type: System.Numerics::BigInteger
The object to compare.
Return Value
Type: System::Booleantrue if this BigInteger object and other have the same value; otherwise, false.
Implements
IEquatable<T>::Equals(T)This method implements the IEquatable<T> interface and performs slightly better than Equals(Object) because it does not have to convert the other parameter to a BigInteger object.
To determine the relationship between the two BigInteger objects instead of just testing for equality, call the BigInteger::CompareTo(BigInteger) method.
The following example compares the approximate distance of several stars from Earth with the distance of Epsilon Indi from Earth to determine whether they are equal. The example uses each overload of the Equals method to test for equality.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.