+ All Categories
Home > Technology > C# 6 Features

C# 6 Features

Date post: 05-Jul-2015
Category:
Upload: noelmc-grath
View: 156 times
Download: 1 times
Share this document with a friend
Description:
C# 6 Features
15
Transcript
Page 1: C# 6 Features
Page 2: C# 6 Features

Language Features

https://roslyn.codeplex.com/wikipage?title=Language%20feature%20status&referringTitle=Home

Page 3: C# 6 Features

Property Initializers

• no explicit constructor code is required

• initialized auto-property only requires a getter, the set method is optional. With no setter, immutability is easier to achieve

• Plays well with primary constructor

Page 4: C# 6 Features

Primary Constructors

Page 5: C# 6 Features

Static type using statements

• Some usages we may use

– Check

– Assert

Page 6: C# 6 Features

Expression Bodied Functions and Properties

Page 7: C# 6 Features

Null propagation

Page 8: C# 6 Features

Declaration Expressions

Page 9: C# 6 Features

Declaration Expressions cont.

Page 10: C# 6 Features

Nameof operator

Page 11: C# 6 Features

Dictionary Initializer

Page 12: C# 6 Features

Exception filters

Page 13: C# 6 Features

await in catch and finally block

Page 14: C# 6 Features

Discussion

• https://roslyn.codeplex.com/discussions/570551

Page 15: C# 6 Features

Links

• http://damieng.com/blog/2013/12/09/probable-c-6-0-features-illustrated

• http://thebillwagner.com/blog/overview-of-c-6-language-enhancements

• http://msdn.microsoft.com/en-us/magazine/dn802602.aspx

• https://roslyn.codeplex.com/wikipage?title=Language%20feature%20status&referringTitle=Home

• http://www.dotnetcurry.com/showarticle.aspx?ID=1042

• http://www.pluralsight.com/courses/csharp-6-whats-new


Recommended