是C#2.0到C#3.0转型值得为这个项目?

问题描述:

我已经阅读堆栈溢出一些人已经转换为C#2.0到C#3,但它真的值得吗?

I have read on Stack Overflow some people that have converting to C#2.0 to C#3, but is it really worth it?

我有这是在75%的前维护阶段要完成的一个项目。 ?我问我自己,如果它是值得的,切换到C#3.0 击>

该项目将有一个Web界面现在这么进入维护阶段我们要开发Web部件之前(全部是为内部目的而进行的与Windows窗体)。大部分地区将resused(后端)。大多数人都表示,这是不值得的,因为过去它已经在75%......但现在你仍然认为这是不值得的?

The project will have a web interface now so before entering the maintenance phase we have to develop the web part (all was done for internal purposes with Windows Forms). Most parts will be resused (back-end). Most people have said that it wasn't worth it in the past because it was already at 75%... but now do you still think it's not worth it?

最后,因为我们将继续与Web界面的项目,我们将更新到3.5在新的一年。谢谢大家对所有输入。

Finally since we are continuing the project with the web interface we will update to 3.5 for the new year. Thank you everybody for all your input.

没有,我劝不行。我会建议3.5开始仅新项目,除非有特别的理由。你不会有任何好处,从3.5只需重新编译,因为你的代码已经编写(或其中至少75%)。

No, I would advise not. I would advise starting 3.5 on new projects only, unless there is a specific reason otherwise. You will not have any benefit from 3.5 by just recompiling, since your code is already written (or at least 75% of it).

如果你需要迁移到3.5在未来,你可以很容易地做到这一点。当然,你将有代码2.0风格的,但什么是木已成舟。

If you need to migrate to 3.5 in the future, you can easily do it. Of course, you will have code in 2.0 style, but what is done is done.


  • 是保守的,不要做一些事情,除非你需要它。

  • 一个应用程序,它是75%,在C#2.0和25%,在C#3.0不正是一个很好的兽维护。 100%的C#2.0的应用肯定是更容易维护。

当你要开始一个新的项目,然后通过各种手段开关!新框架的版本是非常有趣和激烈的是推荐开关。

When you are going to start a new project, then by all means switch! The new framework version is very interesting and the switch is hotly recommended.