New features in C# 4.5 and C# 5.0 | ASP.NET C# Interview Question | C# Programmer Guide

,
BigInteger

The is a new DLL called System.Numerics that holds 2 public types. One of these types is the BigInteger struct. If you ever feel the need for some scientific programming you can resort to this struct. BigInteger is an immutable type that represents an arbitrarily large integer whose value in theory has no upper or lower bounds.


BigInteger bigIntFromDouble = new BigInteger(156487.4645);
Console.WriteLine(bigIntFromDouble);

BigInteger bigIntFromInt64 = new BigInteger(465789487421);
Console.WriteLine(bigIntFromInt64);