Visual C#每一次新版本的变化

What‘s New in Visual C# .NET 2003[Visual Studio .NET 2003]

What‘s New in Visual C# 2005

What‘s New in Visual C# 2008

What‘s New in Visual C# 2010

What‘s New for Visual C# in Visual Studio 2012

What‘s New for Visual C# 2015

=== ================================================================================================================================================

Evolution of C# (1.0 – 5.0) – What are the New Features Introduced in C#

C# is not new to us. We are using it since Visual Studio 2002. Currently it is in released version 4.0 and C# 5.0 is on the way to release with Visual Studio 2012. Though we are using it since a long time, but many of us don’t know the new features that has been introduced in each new release.

This post will cover the “Evolution of C#” from version 1.0 to version 5.0 along with the new features and respective Visual Studio version. Bookmark this post for future reference and share it to your network and help others to know.

C# 1.0

Microsoft released the first version of C# with Visual Studio 2002. Use of Managed Code was introduced with this version. C# 1.0 was the first language that developer adopted to build .NET applications.

C# 2.0

Microsoft released the second version of C# language with Visual Studio 2005. C# 2.0 has three new features introduced in this edition which helped the developers to code their applications in more generic way. Here are the new features that was introduced with C# 2.0:

    1. Generics
    2. Anonymous Methods
    3. Nullable Type
    4. Partial Class
    5. Covariance and Contra-variance

C# 3.0

Visual Studio 2008 came with C# version 3.0 and it has a bunch of new features. It was the life changing language for Microsoft platform developers to build their applications. Till now, many developers are still using this version to build their apps. Here are the new features that came with C# 3.0:

    1. Lambda Expression
    2. Extension Method
    3. Expression Tree
    4. Anonymous Types
    5. LINQ
    6. Implicit Type (var)

C# 4.0

Though C# 4.0 was released with Visual Studio 2010 with .NET Framework 4, but very few developers uses it’s new features till date. Keep in mind that, it is the latest release version. Here is a list of new features of C# that came with this version:

    1. Late Binding
    2. Named Arguments
    3. Optional Parameters
    4. More COM Support

C# 5.0

Visual Studio 2012 is coming up with C# 5.0 and it will be available within next few months in 2012. The release candidate (RC) version is available for you to try out the new features. Here are two new features that is coming up with C# 5.0:

    1. Async Feature
    2. Caller Information

Infographic of C# Evolution

Here is the infographic of “Evolution of C#” and the new features introduced in different releases of C# and Visual Studio IDE, which you can bookmark for your future reference:

Don’t forget to share this post in your network, friends and colleagues. Help them to keep this bookmarked for their future reference too.

Last but not least, connect with me on Twitter and Facebook for technical updates and articles news. Also subscribe to my blog’sNewsletter to get all the updates delivered directly to your inbox. We won’t spam or share your email address as we respect your privacy.

=================================================================================================================================================

List of new features in C#2.0, 3.0 and 4.0

Complete plug for my own book, but hopefully not gratuitous: get hold of the early access version of the second edition of C# in Depth. It skips C# 1, but goes into detail on every feature of C# 2, 3 and 4.

If you just want a list of features though, from appendix C:

C# 2.0:

The major features of C# 2 were generics, nullable types, anonymous methods and other delegate-related enhancements and iterator blocks. Additionally, several smaller features were introduced: partial types, static classes, properties with different access modifiers for getters and setters, namespace aliases, pragma directives and fixed-sized buffers.

C# 3.0:

C# 3 primarily built towards LINQ, although many features are useful elsewhere. Automatic properties, implicit typing of arrays and local variables, object and collection initializers and anonymous types are all covered in chapter XREF ch8 . Lambda expressions and expression trees extended the delegate-related progress made in version 2.0, and extension methods provided the last ingredient for query expressions. Partial methods were only added in C# 3, although partial types themselves were in C# 2. As Marc points out in the comments, generic type inference received a considerable boost in C# 3.

C# 4.0:

C# 4.0 has some features aimed at interoperability, but doesn‘t have the same single-mindedness of C# 3.0. Again there‘s a reasonably clear divide between the "small" features (named arguments, optional parameters, better COM interop, generic variance) and the huge feature of dynamic typing.

I‘ve got a "bluffers guide" for C# 2 and another for C# 3, but I haven‘t done the equivalent for C# 4 yet I‘m afraid.

时间: 2024-11-09 07:41:58

Visual C#每一次新版本的变化的相关文章

体验Visual Studio 2015 Windows Forms应用程序开发与维护

昨天到半夜还没有等到Visual Studio 2015的下载地址,实在熬不住就先休息了.北美地区的时区比北京时间要晚一些,今天早上到公司就看到Visual Studio 2015的下载地址,迅速的将Visual Studio 2015下载到电脑中体验一把. 作为老程序员,不关心ASP.NET 5的跨平台,这6年多时间一直坚守在Windows Forms平台下,不离不弃.Windows Forms很早停止更新,我认为这是好事.当初公司尝试选ORM开发框架时,曾考虑过Entity Framewor

DevExpress v15.1:XAF控件升级

<下载最新版DevExpress eXpressApp Framework(XAF) v15.1> 为触摸设备优化网页模板和主题(CTP) 此版本包含了一个新的Web主题,专为设计XAF web应用程序和构建新的页面模板.这些改进将显著提高XAF网站在触摸设备上的使用情况. 发布声明模块 声明模块现在已经发布并可以在环境中使用,新版本的变化包括: 新增打开具有通知项目的相关业务对象的可编辑详细信息视图的功能: 当在状态栏中只有一定数量的项目改变和弹出式不显示时,通知不显眼: 显示所有的或只推迟

火狐开发----安装和配置开发环境

先决条件 请不要把任何相关的开发工具和扩展程序,放到有空格的目录(如Progaram Files\Python),会导致意想不到的错误,无法进行后续操作. 开发 Add-on SDK,你需要: Python 2.5,2.6 或 2.7. 需要注意的是在任何平台都是不支持 Python3.x版本的 .确保你已经安装过Python. Firefox火狐浏览器(本教程针对最新的浏览器). SDK本身:可以获取SDK的最新稳定版本为 tarball压缩包 或 zip 文件. 另外,你可以从它的GitHu

深入 JavaScript

引言 为什么会有这一篇"重新介绍"呢?因为 JavaScript 堪称世界上被人误解最深的编程语言.虽然常被视作"玩具语言",但它看似简洁外衣下,还隐藏着强大的语言特性. JavaScript 目前广泛应用于一大批知名应用中,对于网页和移动开发者来说,深入理解 JavaScript 就尤有必要. 先从这门语言的历史谈起.1995 年 Netscape 一位名为 Brendan Eich 的员工创造了 JavaScript,随后在 1996 年初,JavaScript

字典与集合(Dictionary与Collection)

Dictionary对象将替换Collection对象,并提供附加的语言从而使增加和删除记录的速度比以前提高三倍 虽然Visual Basic 6.0只有很少的新特点,但是具有某些功能强大的新的对象模型,其中之一就是Dictionary对象. Dictionary对象是无处不在的Visual Basic Collection对象的新版本.它的介绍存在于VBScript 2.0,并通过Visual Basic 6.0 对Scripting Runtime Library的支持涉入Visual Ba

MySQL(MariaDB)的 SSL 加密复制

背景: 在默认的主从复制过程或远程连接到MySQL/MariaDB所有的链接通信中的数据都是明文的,在局域网内连接倒问题不大:要是在外网里访问数据或则复制,则安全隐患会被放大很多.由于项目要求需要直接和外网的一台实例进行同步.所以本文介绍下通过SSL加密的方式进行复制的方法,来进一步提高数据的安全性.本文会一起介绍MySQL和MariaDB. 环境搭建: 默认情况下ssl都是关闭的,要是have_ssl显示NO,则表示数据库不支持SSL,需要重新编译安装来支持它,显示为DISABLED表示支持S

使用jQuery的9个误区

千万别忘记了使用最新的版本哦,毕竟每个版本更新肯定会在功能或性能上有所提升,或者修复了几个Bug,但有时惰性让人不想再去研究新版本的变化,因此,提醒你别忘记了在新项目用新的一定比旧版本要好. AD: jQuery是如此容易使用以至于我们有时候忘记了CSS的存在.我们在使用CSS时,几乎不去考虑性能,因为它已经是快得不值得再 去做什么优化上的努力.但现实世界中,JQuery会导致令开发人员发疯的性能问题.有时你会毫无知觉地就损失那么几毫秒.我们也很容易忘记的一些功能并 继续使用一些旧的(和不那么好

商品搜索引擎---分词(插件介绍与入门实例)

最近刚好在学习搜索引擎分词,有了解一些分词插件,在这里给各位猿友分享一下. 本文主要介绍四个分词插件(ICTCLAS.IKAnalyzer.Ansj.Jcseg)和一种自己写算法实现的方式,以及一些词库的推荐. 一.ICTCLAS 1.1.介绍 中文词法分析是中文信息处理的基础与关键.中国科学院计算技术研究所在多年研究工作积累的基础上,研制出了汉语词法分析系统ICTCLAS(Institute of Computing Technology, Chinese Lexical Analysis S

有趣的keil MDK细节(转)

源:有趣的keil MDK细节 1.MDK中的char类型的取值范围是? 在MDK中,默认情况下,char 类型的数据项是无符号的,所以它的取值范围是0-255.它们可以显式地声明为signed char 或 unsigned.因此,定义有符号char类型变量,必须用signed显式声明.我曾读过一本书,其中有一句话:“signed关键字也是很宽宏大量,你也可以完全当它不存在,在缺省状态下,编译器默认数据位signed类型”,这句话便是有异议的,我们应该对自己所用的CPU构架以及编译器熟练掌握.