.net 3.5 和 4.0 之间的基本区别

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1000101/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 12:52:14  来源:igfitidea点击:

Basic difference between .net 3.5 and 4.0

.netcomparison

提问by

Please tell me the basic difference between dotnet 2008 and 2010(3.5 and 4.0)

请告诉我 dotnet 2008 和 2010(3.5 和 4.0)之间的基本区别

回答by Richard

MSDN has a number of "What's New" pages up, including:

MSDN 有许多“新功能”页面,包括:

回答by Lance

I hope I'm not incorrectly reading jignesh's question, but I would have to assume that the linking of a ton of "What's New" pages is probably not what they wanted. I would think that they could have done a search and pulled up that much.

我希望我没有错误地阅读 jignesh 的问题,但我不得不假设大量“新功能”页面的链接可能不是他们想要的。我认为他们可以进行搜索并拉出那么多。

I think what they are looking for is more of a feel for what people can break down for them as a reason to or not to go with a particular version - personal experience, not press releases.

我认为他们正在寻找的更多是一种感觉,人们可以为他们分解什么作为选择或不使用特定版本的理由 - 个人经验,而不是新闻稿。

For me, I'd say the biggest things for me that make 2010/4.0 worth the trip are the changes that allow me to distribute a client application without needing the dnFx installed on a machine, the new GC, the crazy-cool "dynamic", and (sadly, yes) the multi-monitor support.

对我来说,我想说让 2010/4.0 值得一游的最重要的事情是允许我分发客户端应用程序而无需在机器上安装 dnFx、新的 GC、疯狂酷的“动态",以及(遗憾的是,是的)多显示器支持。

回答by Micha? Chaniewski

Uh, where to start. Here is what I love:

嗯,从哪里开始。这是我喜欢的:

  • all new things about parallel computing
  • "dynamic" keyword and Dynamic Language Routine
  • code contracts
  • new background garbage collector
  • compiling only necessary parts of Primary Interop Assemblies into your application, and compatibility/versioning improvements that this infrastructure allows for pure .NET code
  • new stuff about exception handling (look for corrupted state exceptions)
  • small stuff like BigInteger and SortedSet classes
  • memory-mapped files handling in managed code
  • 关于并行计算的所有新事物
  • “dynamic”关键字和动态语言例程
  • 代码契约
  • 新的后台垃圾收集器
  • 仅将主互操作程序集的必要部分编译到您的应用程序中,以及此基础结构允许纯 .NET 代码的兼容性/版本控制改进
  • 关于异常处理的新内容(查找损坏的状态异常)
  • 像 BigInteger 和 SortedSet 类这样的小东西
  • 托管代码中的内存映射文件处理

and may others, look around on the net, there is a lot of information already.

也许其他人,在网上环顾四周,已经有很多信息了。

回答by Mischa Kroon

A simple google brings up...

一个简单的谷歌带来了......

http://blogs.msdn.com/bclteam/archive/2009/05/22/what-s-new-in-the-bcl-in-net-4-beta-1-justin-van-patten.aspx

http://blogs.msdn.com/bclteam/archive/2009/05/22/what-s-new-in-the-bcl-in-net-4-beta-1-justin-van-patten.aspx

There are probably a lot more things, the Framework is massive so changes which are interesting for person x might not be as important for person y.

可能还有很多东西,框架很大,所以对人 x 感兴趣的变化可能对人 y 不那么重要。

回答by kacalapy

built in MVC in visual studio 2010 !!!

在 Visual Studio 2010 中内置 MVC !!!

回答by bresleveloper

In that case (lance may) I must say that my favorites are the dynamic also and the super great solution to multi-threading - the Parallel lib, its really awesome and fast! (nested parallels are not always faster BTW)

在那种情况下(lance 可能)我必须说我最喜欢的是动态也是多线程的超级好解决方案 - Parallel lib,它真的很棒而且速度很快!(嵌套的并行并不总是更快 BTW)

But I feel that @jignesh asked if there's a real difference in the engineering structure, how it works from behind, something someone from inside should say, after all decided that it's different enough that if you want 3.5 and 4 in the same machine you need to install them both.

但我觉得@jignesh 询问工程结构是否有真正的不同,它是如何从后面工作的,内部人员应该说的话,毕竟决定它足够不同,如果你想要 3.5 和 4 在同一台机器上,你需要安装它们。

Anyway I would love an answer to that if there is :)

无论如何,如果有的话,我很乐意回答这个问题:)

回答by Mohammad Shahnawaz

Difference between Framework 3.5and Framework 4.0:

Framework 3.5和之间的区别Framework 4.0

  1. EnableViewState - [true or false]in Framework 3.5

    EnableViewState -[Enabled/Disabled/Inherits]in Framework 4.0

  2. Keywordand Descriptionis added in Framework 4.0while it is not available in Framework 3.5in the Page Directives.
  1. EnableViewState - [true or false]Framework 3.5

    EnableViewState -[Enabled/Disabled/Inherits]Framework 4.0

  2. Keyword并且在页面指令中不可用时Description添加。Framework 4.0Framework 3.5