C#2010 Express中的BigInteger? [英] BigInteger in C# 2010 Express?

查看:98
本文介绍了C#2010 Express中的BigInteger?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C#2010的快速版本中是否存在BigInteger类型?我似乎无法让VS在一个简单的程序中识别它.我已包含正在使用System.Numerics"语句,但错误窗口未指示此类类型.

Does the BigInteger type exist in the express version of C#2010? I can''t seem to get VS to recognize it in a simple program. I''ve included a "using System.Numerics" statement, but the error window indicates no such type.

推荐答案

从项目属性中检查您是否自从该版本引入BigInteger以来,它的目标是.Net Framework 4.
From your project properties check that you''re targeting .Net framework 4 since BigInteger was introduced in that version.


将System.Numerics库包含到您的解决方案中
命名空间: System.Numerics
装配体: System.Numerics (in System.Numerics.dll)
有关更多的 BigInteger结构 [
Include the System.Numerics library to you solution
Namespace: System.Numerics
Assembly: System.Numerics (in System.Numerics.dll)
For more BigInteger Structure[^]


米卡(Mika)和旺德(Wonde)正确建议的内容:

您似乎有某种误解.您是否认为该项目取决于Visual Studio.否.VisualStudio用于开发,但它本身并不构建任何东西.它仅启动与(.free redtributable).NET Framework完全捆绑在一起的代码:MSBuild,编译器和其他主要工具.因此,在开发项目时,您甚至不需要任何版本的VS即可构建它.另外,每个人都需要仅使用MSBuild进行这种非交互式构建-出于多种原因.
就是说,Visual Studio应该仅是在所需的.NET Framework版本v.4.0之后发行的版本.快递或不快递-没关系,永远.

我发现了另一种使用BigInteger的方法(System.Numerics是一个很棒的库!).该库已实现并作为Mono源代码的一部分提供,请参见
http://en.wikipedia.org /wiki/Mono_%28software%29 [ ^ ], http://www.mono-project.com/ [
In clarification to what Mika and Wonde correctly advised:

It looks like you have certain misconception. Do you think that the project depends on Visual Studio. No. Visual Studio is use for the development but it does not build anything by itself. It only launches the code which is fully bundled with (freely redistributable) .NET Framework: MSBuild, compilers and other primary tools. So, when you project is developed, you don''t even need any version of VS to build it. Also, everyone need to do such non-interactive build using just MSBuild — by many reasons.

That said, Visual Studio should only be of the version issued after required version of .NET Framework, v.4.0 in this case. Express or not Express — does not matter, ever.

I found one more way to use BigInteger (System.Numerics is a wonderful library!). This library is implemented and available as a part of the source code of Mono, see http://en.wikipedia.org/wiki/Mono_%28software%29[^], http://www.mono-project.com/[^]. This code is easy to find, extract and use separately from Mono, in MS.NET of any version.

—SA


这篇关于C#2010 Express中的BigInteger?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆