This fun session covers some of the new language features found in C# 6.
This session was presented as part of the Microsoft South Africa Dev Day roadshow in March 2015.
More info at: http://www.sadev.co.za/content/slides-my-devday-march-2015-talks
6. What Roslyn Brings?
Easier to add new stuff to C# in
future
Building extensions becomes trivial
thus more from MS & 3rd parties
Compatible or faster build times
One compiler to rule them all!
Ability to embed C# into your app
(ala JavaScript eval)
7.
8.
9.
10.
11. VB?
Already Exists
Auto-properties
Exception filters
Using Static
VB Also getting
Read only auto-
properties
Null Propagation
String interpolation
NameOf
VB NOT getting*
Dictionary Initializer
Await in try/catch
Expression Bodied
members
VB Only*
NoPartial Modules
Year first date literals
Lint continuation
comments
TypeOf IsNot
*For this release – may change in future releases
Plus more for C# & VB still under review/development
12. Review
Roslyn
Open Source
What Roslyn Brings?
C♯ 6
Indexed Members
Auto-Properties with Initializers
Static Using Statements
Await/Async + Exceptions
Exception Filtering
Null Propagation
Nameof expressions
Expression Bodied Members
String Interpolation