This documentation is archived and is not being maintained.
BigInteger::Equals Method (Int64)
Visual Studio 2010
Returns a value that indicates whether the current instance and a signed 64-bit integer have the same value.
Assembly: System.Numerics (in System.Numerics.dll)
Parameters
- other
- Type: System::Int64
The signed 64-bit integer value to compare.
Return Value
Type: System::Booleantrue if the signed 64-bit integer and the current instance have the same value; otherwise, false.
The following example instantiates a BigInteger object from each integral type except UInt64. It then calls the Equals(Int64) method to compare the BigInteger value with the original integer value that was passed to the BigInteger constructor. As the output shows, the values are equal in each case.
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.
Show: