16
New things in C# 6.0 Senthil Kumar B Microsoft MVP – Windows Platform Development MobileOSGeek.com

New Things in C# 6.0

Embed Size (px)

Citation preview

Page 1: New Things in C# 6.0

New things in C# 6.0

Senthil Kumar B

Microsoft MVP – Windows Platform Development

MobileOSGeek.com

Page 2: New Things in C# 6.0

About Me

• Work for Trivium eSolutions , Bangalore

• Microsoft MVP in Windows Platform Development.

• Speaker , Blogger and Software Engineer

• BDotNetter

• Blog about Mobile development at MobileOSGeek.com

• Twitter : @isenthil

Page 3: New Things in C# 6.0

C# 1.0 to 5.0

• C# 1.0 – Announced in 2002

• C# 2.0 – 2005

• Generics

• C# 3.0 – 2007

• LINQ and Lambda Expression

• C# 4.0 - 2010

• dynamic

• C# 5.0 - 2012

• Asynchronous programming

Page 4: New Things in C# 6.0

C# 6.0 and features

• Auto Property Initializers

• Expression Bodied Function Members

• Static

• Null Conditional Operator

• String Interpolation

• NameOf Expression

• Dictionary Initializers

• Exception filters

• Await in catch and Finally

• and more …

Page 5: New Things in C# 6.0

Auto Property Initializer

Page 6: New Things in C# 6.0

Read Only Auto properties

Page 7: New Things in C# 6.0

Expression bodies on method-like members

Page 8: New Things in C# 6.0

Expression bodies on property-like function members

Page 9: New Things in C# 6.0

Static class in using clause

Page 10: New Things in C# 6.0

Null-conditional operator

Page 11: New Things in C# 6.0

String Interpolation

Page 12: New Things in C# 6.0

NameOf Expression

Page 13: New Things in C# 6.0

Dictionary Initializers

Page 14: New Things in C# 6.0

Exception filters

Page 15: New Things in C# 6.0

How to try C# 6.0 ?

Download and install Visual Studio 2015 Preview

http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs

Note : Visual Studio 2015 is currently in preview and install and try it on a VM or system that is available for reformatting later. The preview release is not intended for use on production computers.

Page 16: New Things in C# 6.0

Q&A