This documentation is archived and is not being maintained.

BigInteger::Equals Method (UInt64)

Returns a value that indicates whether the current instance and an unsigned 64-bit integer have the same value.

This API is not CLS-compliant. 

Namespace:  System.Numerics
Assembly:  System.Numerics (in System.Numerics.dll)

[CLSCompliantAttribute(false)]
public:
bool Equals(
	unsigned long long other
)

Parameters

other
Type: System::UInt64
The unsigned 64-bit integer to compare.

Return Value

Type: System::Boolean
true if the current instance and the unsigned 64-bit integer have the same value; otherwise, false.

To determine the relationship between the two objects instead of just testing for equality, call the BigInteger::CompareTo(UInt64) 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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

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: