C# BigInteger Implicit(UInt16 to BigInteger)

Description

BigInteger Implicit(UInt16 to BigInteger) Defines an implicit conversion of a 16-bit unsigned integer to a BigInteger value.

Syntax

BigInteger.Implicit(UInt16 to BigInteger) has the following syntax.


public static implicit operator BigInteger (
  ushort value
)

Parameters

BigInteger.Implicit(UInt16 to BigInteger) has the following parameters.

  • value - The value to convert to a BigInteger.

Returns

BigInteger.Implicit(UInt16 to BigInteger) method returns An object that contains the value of the value parameter.

Example


using System;//from  ww  w  .java2 s.c om
using System.IO;
using System.Numerics;

public class Example
{
   public static void Main()
   {
        ushort uShortValue = 25064;
        BigInteger number = uShortValue;
        number += uShortValue;
        Console.WriteLine(number < uShortValue);           // Displays False
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex