哪里是我的System.Numerics命名空间? [英] Where is my System.Numerics namespace?
问题描述
我使用Visual Studio 2010和尝试使用的BigInteger
键入一个C#程序。这种类型的应该是在 System.Numerics
命名空间中可用,但我似乎不具有安装在.NET 4.0中的框架。当我输入使用System.Numerics;
在VS2010,红色下划线出现在 Numerics的
。有没有其他人遇到过这个问题吗?
I'm using Visual Studio 2010 and trying to use the BigInteger
type in a C# program. This type is supposed to be available in System.Numerics
namespace, but I don't seem to have that installed in the .Net 4.0 framework. When I type "using System.Numerics;
" in VS2010, a red underline appears under the "Numerics
". Has anyone else ever had this problem?
如果是这样,你怎么解决呢?我只是重新下载并重新安装(修复),那么.NET 4.0框架,但没有帮助。我从来没有与我写的其他的C#程序的任何问题,所以我不知道我错过了什么。
If so, how do you resolve it? I just re-downloaded and re-installed (repaired) the .Net 4.0 framework, but that didn't help. I've never had any problems with other C# programs that I've written, so I'm wondering what I'm missing.
推荐答案
您需要添加程序集引用 System.Numerics.dll
You need to add an assembly reference to System.Numerics.dll
上的BigInteger 国 MSDN条目:
The MSDN entry on BigInteger states:
BigInteger的结构
...
命名空间:System.Numerics
大会:System.Numerics(在System.Numerics.dll)
BigInteger Structure
...
Namespace: System.Numerics
Assembly: System.Numerics (in System.Numerics.dll)
这篇关于哪里是我的System.Numerics命名空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!