Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

What is new in C# 6?

1,826 views

Published on

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

Published in: Software
  • Be the first to comment

What is new in C# 6?

  1. 1. What is new in C♯ 6?
  2. 2. Agenda 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
  3. 3. Roslyn Old Compiler (C++)
  4. 4. Roslyn Roslyn (Syntax Tree) Roslyn (Compiler API)
  5. 5. Open Source https://github.com/dotnet/roslyn Celebrated it’s 1st year of open source on the 14th April 2015 Apache 2.0 License .NET Foundation Builds for Linux! C♯
  6. 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. 7. 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
  8. 8. 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
  9. 9. Thank you  github.com/rmaclean/sharpsharpwithcsharp6 @rmaclean | www.sadev.co.za

×