BigInteger.Equals Method (Object)
Returns a value that indicates whether the current instance and a specified object have the same value.
Assembly: System.Numerics (in System.Numerics.dll)
- Type: System.Object
The object to compare.
If the obj parameter is not a BigInteger value, but it is a data type for which an implicit conversion is defined, the method converts obj to a BigInteger value before it performs the comparison. If obj is not a BigInteger value and cannot be implicitly converted to BigInteger, the method returns false. If no conversion from obj to a BigInteger value exists, the method does not throw an exception; instead, it returns false.
To determine the relationship between the two objects instead of just testing for equality, call the CompareTo(Object) 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 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.