How to use BigInteger in VS 2010


I have been trying to use the BigInteger type, that is supposedly new in .NET Framework 4.0.

I don't seem to be able to get to it, and get an error when trying to reference it via Using System.Numerics.

Any idea what I'm doing wrong? Sorry if this is a stupid question...



<a href="http://msdn.microsoft.com/en-us/library/wkze6zky(v=VS.100).aspx" rel="nofollow">Add a reference</a> to the <em>System.Numerics</em> assembly to your project.

a. In Solution Explorer, right-click the project node and click <strong>Add Reference</strong>.

b. In the <strong>Add Reference</strong> dialog box, select the <strong>.NET</strong> tab.

c. Select <strong>System.Numerics</strong>, and then click <strong>OK</strong>.

</li> <li>

Add a <a href="http://msdn.microsoft.com/en-us/library/sf0df423.aspx" rel="nofollow">using directive</a> importing the <em>System.Numerics</em> namespace:

using System.Numerics; </li> <li>

Use the <a href="http://msdn.microsoft.com/en-us/library/system.numerics.biginteger.aspx" rel="nofollow">BigInteger structure</a>:

var i = new BigInteger(934157136952); </li> </ol>


Did you add a reference to System.Numerics?


Right click on References -> Add Reference -> .NET tab -> System.Numerics -> OK



Add a Reference to System.Numerics assembly.

Add using System.Numerics; statement


Have you added a project reference (Project... Add Reference...) to System.Numerics?


  • $_POST is not working in ajax form submit?
  • Automate stdin with Python using stdin.write()
  • Trouble using Runtime.getRuntime().exec
  • load ActiveX object in Applet
  • App crash when selecting more than 10 images
  • System.IO.IOException: Too many open files
  • Stop or Detection dll injection loadlibrary
  • Overlaying text on video with required angle using FFMPEG
  • Eclipse ADT Plugin crashed after updating to version 22.0
  • no endpoints available for service \\“kubernetes-dashboard\\”
  • How to print every 4th column up to nth column and from (n+1)th column to last using awk?
  • How to set http status code when responding to servlet client from Filter class-method in tomcat
  • create circular Auto Horizontal Scroll View?
  • Combine two jagged lists into one
  • How to search for a method or variable name within android project?
  • Smarter Removing Unnecessary WhiteSpace CSV
  • Facebook friend list in Facebook Android SDK 3.14
  • Unable to run testNG tests from maven
  • Multiple canvases (pages) in Fabric.js
  • Admob in ListView not clickable
  • JQuery Mobile Ajax Navigation in Single-Page Template
  • Pick Out Specific Number from Array? [duplicate]
  • How to add html image in to velocity template file to send email?
  • Julia 1.0 UndefVarError - Scope of Variable
  • How to use AJAX to upload large CSV file? [closed]
  • trigger ontouch event programmatically
  • How to merge objects within array based on attribute
  • Typeahead.js does give me suggestions but doesn't select them
  • concise way of flattening multiindex columns
  • how to get the location(lat/lng) on google maps v3 from the location(x,y)
  • How to call jQuery function in HTML returned by AJAX
  • Stacked bar chart with continuous time-axis as x-axis
  • How to integrate angular2-material (alpha 8.2) with angular2-Quickstart app
  • Send array to next viewcontroller iOs xcode [duplicate]
  • Comma decimal separator is ignored by ASP.NET MVC model binder
  • Running R's aov() mixed effects model from Python using rpy2