Bewerken

Share via


BigInteger.IsEven Property

Definition

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.

Applies to