C# BigInteger Implicit(Byte to BigInteger)
Description
BigInteger Implicit(Byte to BigInteger)
Defines an
implicit conversion of an unsigned byte to a BigInteger value.
Syntax
BigInteger.Implicit(Byte to BigInteger)
has the following syntax.
public static implicit operator BigInteger (
byte value
)
Parameters
BigInteger.Implicit(Byte to BigInteger)
has the following parameters.
value
- The value to convert to a BigInteger.
Returns
BigInteger.Implicit(Byte to BigInteger)
method returns An object that contains the value of the value parameter.
Example
using System;// w ww . j av a2 s . co m
using System.IO;
using System.Numerics;
public class Example
{
public static void Main()
{
byte byteValue = 254;
BigInteger number = byteValue;
number = BigInteger.Add(number, byteValue);
Console.WriteLine(number > byteValue); // Displays True
}
}
The code above generates the following result.