views:

246

answers:

4

Hi, Can someone show me how to use the System.Numerics.BigInteger datatype? I tried using this as a reference - http://msdn.microsoft.com/en-us/library/system.numerics.biginteger%28VS.100%29.aspx

But System.Numerics namespace isn't there on my computer. I have installed VS2010 Ultimate RC and i have .NET Framework 4.0. Can someone guide me through this?

Regards,

Akshay.

+6  A: 

It should be there, did you remember to add a reference?

Right click your project, click Add Reference, then in the leftmost tab, select System.Numerics

Then you can add it and use it.

SLC
Thanks! That really helped:)
Akshay
+2  A: 

What version of .NET 4 is your project targeting? Make sure it is targeting the entire framework not the client profile. I have just confirmed that System.Numerics.dll is part of .NET 4 Client Profile so this shouldn't be the problem.

Once you have done this make sure that you have referenced System.Numerics.dll in your project as well.

Andrew Hare
+2  A: 

Do you have System.Numerics.dll in references of your project?

Andrew Bezzub
+1  A: 

Make sure you include a reference to System.Numerics, otherwise you won't see the namespace. The MSDN documentation is a good source to see which assemblies you have to reference to get which namespaces.

LBushkin