ORCAS - System.Numeric.BigInteger - unable to compile

  • Thread starter Thread starter Auto
  • Start date Start date
A

Auto

I am unable to compile the code below - using C# ORCAS (9.0.20404.0 Beta 1 -
JUNE 2007), because i get the following error:

'System.Numeric.BigInteger' is inaccessible due to its protection level
C:\Documents and Settings\Massimo\Local Settings\Application Data\Temporary
Projects\TestBigInteger\Program.cs 12 40 TestBigInteger

-----------------------------------------------------------------------------------
using System;

using System.Numeric;



namespace TryOutBigInteger {

class MyBigIntApp {

static BigInteger BigFactorial(BigInteger x) {

if (x < 0)

return BigFactorial(-x);

else if (x <= 1)

return x;

else return x * BigFactorial(--x);

}



static void Main(string[] args) {

BigInteger x = BigInteger.Parse(Console.ReadLine());

Console.WriteLine(BigFactorial(x).ToString());

Console.ReadLine();

}

}

}

-----------------------------------------------------------------------------------
http://blogs.msdn.com/bclteam/archi...ng-system-numeric-biginteger-inbar-gazit.aspx



Any help ?



Thanks.
 
Auto said:
http://blogs.msdn.com/bclteam/archive/2007/01/16/
introducing-system-numeric-biginteger-inbar-gazit.aspx

Yes, but then see this:

http://blogs.msdn.com/bclteam/archive/2007/04/20/visual-studio-code-
name-orcas-beta-1-has-been-released-inbar-gazit.aspx

In particular:

"After releasing the BigInteger type in earlier CTPs we have received
some good and constructive feedback from customers and partners that
are interested in extended numerical types. We have learned that there
are some potential improvements that we can make to this type to better
serve their needs. As such, we decided to remove BigInteger from the
Beta 1 release of Orcas so that we can address these issues and
concerns."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top