BigInteger.IsEven Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether the value of the current BigInteger object is an even number.
public:
property bool IsEven { bool get(); };
public bool IsEven { get; }
member this.IsEven : bool
Public ReadOnly Property IsEven As Boolean
Property Value
true
if the value of the BigInteger object is an even number; otherwise, false
.
Remarks
This property is a convenience feature that indicates whether a BigInteger value is evenly divisible by two. It is equivalent to the following expression:
value % 2 == 0;
value Mod 2 = 0
If the value of the current BigInteger object is BigInteger.Zero, the property returns true
.