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