本文介绍了为什么要升级到c#4.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我知道在C#4.0有一些不错的新功能,但我不能,在我的生活,想到一个引人注目的原因,升级现有的项目或切换到新的项目。I know there are some nice new features in C# 4.0 but I can't, for the life of me, think of a compelling reason for either upgrading existing projects or for switching to new projects.我看过一些帖子,有人说如果他们的主机服务没有提供.Net 4,他们会找到另一个提供商.Net 4是他们的方向微小<?> 。I've seen some posts where people have said that if their hosting service didn't provide .Net 4 that they'd find another provider as .Net 4 was pinicle to their direction <?>.现在我的老板想让我同意将我们所有的生产环境切换到C#现在做。Now my boss is trying to get me to agree to switch all our production environments to C# 4 and to do it now.所以问题是有人开始使用或转换一个项目,C#4有一个令人信服的理由?So the question is has anyone either began using, or converted a project to, C# 4 for a compelling reason? Was there a feature that you just had to have that would make your life so much easier?推荐答案有一些很酷的 C#4.0中的新功能: 动态成员查询 协变和逆向通用类型参数 使用COM时可选参考关键字 可选参数和命名参数 已编入索引的属性Dynamic member lookupCovariant and contravariant generic type parametersOptional ref Keyword when using COMOptional parameters and named argumentsIndexed properties后Scott Guthrie详细介绍了 .NET 4的功能一般。另一个重要资源是 http://www.asp.net/learn/whitepapers/aspnet4上的白皮书。但是,我怀疑你会立即需要这些新功能。 Scott Hanselman博客:In his release blog post Scott Guthrie goes into detail about the features of .NET 4 in general. Another great resource is a white paper at http://www.asp.net/learn/whitepapers/aspnet4. However, I'd doubt you are going to need one / any of these new features right away. As Scott Hanselman blogged:因此,您是否应该升级取决于各种其他因素。有些原因让人想起:Whether or not you should upgrade is therefore dependent on a variety of other factors. Some reasons that spring to mind: 在vs2008的单一平台VS2010上标准化您的开发环境。与你的经理进行公开对话似乎是适当的,以了解他的升级的推理。我认为,因为它的光泽不是一个引人注目的原因。An open dialogue with your manager seems appropriate to understand his reasoning for the upgrade. I'd argue that because it's shiny isn't a compelling reason.作为参考这个日期的Stack Overflow问题为什么不升级到最新的.net框架提供了与你的问题相反。As a reference this dated Stack Overflow question "Why not upgrade to the latest .net framework" provides the inverse to your question. 这篇关于为什么要升级到c#4.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!