C# 6.0 is shipped along with Roslyn (.NET Compiler Platform) and Visual Studio 2015.
C# 6.0 is shipped along with Roslyn (.NET Compiler Platform) and Visual Studio 2015. The compiler for this version, code-named 'Roslyn', has been released as open source on codeplex during the Build 2014 conference.
The new features that are available in this version include:
- Expression-bodied Members
- Auto-property Initializers
- Getter-only Auto-properties
- Null-conditional Operator
- NameOf Operator
- String Interpolation
- Await in Catch and Finally Blocks
- Exception filters
- Index Initializers
- Extension Add in Collection Initializes
- Improved Overload Resolution
- Using Static Statement
For more information see: