我的System.Numerics命名空间在哪里?

Kev*_*vin 28 .net c# biginteger

我正在使用Visual Studio 2010并尝试BigInteger在C#程序中使用该类型.这种类型应该在System.Numerics命名空间中可用,但我似乎没有在.Net 4.0框架中安装它.当我using System.Numerics;在VS2010中输入" "时," Numerics" 下方会出现一个红色下划线.还有其他人有过这个问题吗?

如果是这样,你如何解决它?我刚刚重新下载并重新安装(修复).Net 4.0框架,但这没有帮助.我从来没有遇到过我写过的其他C#程序的任何问题,所以我想知道我错过了什么.

Cod*_*aos 47

您需要添加一个程序集引用 System.Numerics.dll

BigInteger上MSDN条目指出:

BigInteger Structure
...
命名空间:System.Numerics
程序集:System.Numerics(在System.Numerics.dll中)