BigInteger::IsEven Property
.NET Framework (current version)
Indicates whether the value of the current BigInteger object is an even number.
Assembly: System.Numerics (in System.Numerics.dll)
Property Value
Type: System::Booleantrue if the value of the BigInteger object is an even number; otherwise, false.
This property is a convenience feature that indicates whether a BigInteger value is evenly divisible by two. It is equivalent to the following expression:
[C#]
value % 2 == 0;
[Visual Basic]
value Mod 2 = 0
If the value of the current BigInteger object is BigInteger::Zero, the property returns true.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone
Available since 8.1
Show: