VS2008中System.Numerics的使用 [英] Usage of System.Numerics in VS2008

查看:143
本文介绍了VS2008中System.Numerics的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用EvilDicom的开源代码: http://evildicom.rexcardan.com/ [

I am using an open source code from EvilDicom: http://evildicom.rexcardan.com/[^]. Unfortunately, these codes are in VS2010 and they use the namespace System.Numerics and Microsoft.CSharp.

I would like to know if there are equivalents of these namespaces in VS2008?
My application is built in VS2008 and hence I am trying to build it in 2008.

Thanks for the help.

推荐答案

很高兴您找到了想要的东西.

不幸的是System.Numerics是仅.net 4的内容.

VS2008最多使用.net 3.5,切换到.net 4和VS2010非常容易,而且就您的编码开销而言,根本没有.

.net 4可以按原样使用所有现有的.net 2+ DLL,因此您不会丢失任何内容.

您可能遇到的唯一问题是需要将.net 4部署到您的客户端.
Glad you found what you were looking for.

Unfortunately System.Numerics is a .net 4 only thing.

VS2008 is using at most .net 3.5, it is very easy to switch to .net 4 and VS2010 and as far as your coding overhead is concerned there is none.

.net 4 can use all your existing .net 2+ DLL''s as is, so you loose nothing.

The only problem you may have is the need to deploy .net 4 to your clients.


不是一件容易的事.至于System.Numerics,应该易于重构代码,在代码中搜索BigInteger结构,并在3.5中找到合适的数据类型,这与Complex结构相同(需要更多工作).

对于Microsoft.CSharp,故事将有所不同.由于该名称空间和lib仅包含CSharpCodeProvider类,该类提供对C#代码生成器和代码编译器实例的访问,因此,我不知道它们如何使用它以及该代码是否易于重构.
但是,只需检查代码,也许这些库已被引用但实际上并未使用.

让我们知道!

欢呼声
Well not in an easy way. As for System.Numerics it should be easy to refactor the code, search for BigInteger structures in the code and find a suitable data type available in 3.5, same for Complex structure (which requires more work).

For the Microsoft.CSharp the story will be a little bit different. As that namespace and lib contains only CSharpCodeProvider class which provides access to instances of the C# code generator and code compiler, I do not know how they used it and if that code is easily refactorable.

However, just check the code, maybe these libs are referenced but actually not used.

Let us know!

Cheers


我刚刚找到了解决此问题的绝妙方法.下载Mono的源代码-您将找到本单元的Mono实现的源代码. Mono是开源的,它将与.NET一起使用.

此处:
http://download.mono-project.com/sources/mono/mono-2.10.6.tar.bz2 [ ^ ].

您可以使用7zip解压缩归档文件: http://www.7-zip.org/ [
I just found a wonderful way to overcome this problem. Download source code of Mono — you will find source code of the Mono implementation of this unit. Mono is Open Source, and it will work with .NET.

Here: http://download.mono-project.com/sources/mono/mono-2.10.6.tar.bz2[^].

You can unpack the archive using 7zip: http://www.7-zip.org/[^].

—SA


这篇关于VS2008中System.Numerics的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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