Latest Features list for new versions of C # and VB

Source: Internet
Author: User
Tags list of attributes

As the next release of the C # release day approaches, features that have not yet been completed must be cut off. Recent attributes that have been cut off from the list of attributes include the primary constructor (primary constructor) and the declaration expression (Declaration expressions).

Fortunately, there is not only bad news, a new feature that has never been mentioned by Microsoft is about to be released with C # 6, which is string value insertion (string interpolation), which allows the developer to inline the string directly without having to explicitly call the String.Format method. String value insertion was added to the Mono compiler as an experimental feature in 2009.

The features that will be included in the next release include the following:

  • Initializer for automatic properties (this feature is already in VB)
  • Include only the automatic properties of the Get method
  • Passing values for automatic properties in constructors that include only Get methods
  • struct-Body (struct) constructors with no parameters
  • Direct access to static members (this feature is already in VB)
  • Dictionary initializer (C # only)
  • Call await in catch and finally (completed in C #, VB not yet determined)
  • Exception filter (this feature is already in VB)
  • Typecase (VB not yet determined)
  • Part (partial) module (VB only, not for C #)
  • Partial (partial) interface (already has this attribute in C #)
  • Multiline string (already has this attribute in C #)
  • Gets the date expression for the first day of the year (VB only)
  • Comment for continuation of a line of code (VB only, not for C #)
  • TypeOf and IsNot (VB only, not for C #)
  • Using an expression in a member definition (C # only)
  • Null value Delivery (completed in C #, VB not yet determined)
  • Params parameter accepts IEnumerable type (not yet determined)
  • String value insertion (already in the plan)
  • Nameof operator (completed in C #, VB already in plan)
  • #pragma指令 (already has this attribute in C #)
  • Specify fields in automatic properties (not yet determined)
  • You can see a list of all features that have not been cut off in the language features status page.

Want to learn more programming language tutorial knowledge can visit E Mentor Network.

Latest Features list for new versions of C # and VB

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.