C# BigInteger IsEven
Description
BigInteger IsEven
Indicates whether the value of the
current BigInteger object is an even number.
Syntax
BigInteger.IsEven
has the following syntax.
public bool IsEven { get; }
Example
using System;//from w w w.j a va 2 s .c o m
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger b = BigInteger.Pow(Int64.MaxValue, 2);
Console.WriteLine(b.IsEven);
}
}
The code above generates the following result.