SlideShare a Scribd company logo
What’s new in C# 6
DUDUMAN BOGDAN VLAD
@VLAD_DUDUMAN
A brief history of C#
 C# 1.0 – hello world
 C# 2.0 – generic<T>
 C# 3.0 – x => x.Linq
 C# 4.0 – dynamic
 C# 5.0 – async
 C# 6 – a lot of new features
Features
C# 6.0
Using static members
Exception improvements
Expression-bodied members
Dictionary initializer
Auto-property improvements
Nameof operator
String interpolation
Auto-property
initializers
Getter-only
-
Property
Method
-
Await
catch/finally
Exception
filters
-
Null propagation
DEMO Project Link
HTTPS://GITHUB.COM/DUDUMANBOGDAN/CSHARP6APPDEMO.GIT
Using static
DEMO
The nameof operator
DEMO
String Interpolation
DEMO
Null-Conditional Operator
DEMO
Auto-Property Improvements
DEMO
Expression Bodied Methods
DEMO
Dictionary Initializer
DEMO
Exception Improvements
DEMO
Conclusion
 Doesn’t radically change our code
 Many small features
 Makes coding patterns simpler
 Clean up our code
 .NET Compiler Platform “Roslyn” makes it easy for Microsoft to
improve the language
 A Visual Studio extension that helps upgrade your code to C# 6
http://msft.it/6017BD7NU
Conclusion
Thank you!
A ROTI for this meeting?

More Related Content

What's hot

What's hot (20)

Log cat kotlindsl
Log cat kotlindslLog cat kotlindsl
Log cat kotlindsl
 
Boost your productivity with Clojure REPL
Boost your productivity with Clojure REPLBoost your productivity with Clojure REPL
Boost your productivity with Clojure REPL
 
Php7
Php7Php7
Php7
 
Groovy demo
Groovy demoGroovy demo
Groovy demo
 
Lombok
LombokLombok
Lombok
 
Project Lombok!
Project Lombok!Project Lombok!
Project Lombok!
 
gRPC 프레임워크를 만들며 알아보는 파이썬 - 파이콘2020
gRPC 프레임워크를 만들며 알아보는 파이썬  - 파이콘2020gRPC 프레임워크를 만들며 알아보는 파이썬  - 파이콘2020
gRPC 프레임워크를 만들며 알아보는 파이썬 - 파이콘2020
 
DBI for Parrot and Perl 6 Lightning Talk 2007
DBI for Parrot and Perl 6 Lightning Talk 2007DBI for Parrot and Perl 6 Lightning Talk 2007
DBI for Parrot and Perl 6 Lightning Talk 2007
 
Livecode widget course
Livecode widget courseLivecode widget course
Livecode widget course
 
C compilation process
C compilation processC compilation process
C compilation process
 
Jython: Integrating Python and Java
Jython: Integrating Python and JavaJython: Integrating Python and Java
Jython: Integrating Python and Java
 
Wonders of Golang
Wonders of GolangWonders of Golang
Wonders of Golang
 
Understanding how concurrency work in os
Understanding how concurrency work in osUnderstanding how concurrency work in os
Understanding how concurrency work in os
 
IDE as a Front-end and Fast time-to-market language support in Eclipse IDE re...
IDE as a Front-end and Fast time-to-market language support in Eclipse IDE re...IDE as a Front-end and Fast time-to-market language support in Eclipse IDE re...
IDE as a Front-end and Fast time-to-market language support in Eclipse IDE re...
 
Testing with Mongo Orchestration
Testing with Mongo OrchestrationTesting with Mongo Orchestration
Testing with Mongo Orchestration
 
really really really awesome php application with bdd behat and iterfaces
really really really awesome php application with bdd behat and iterfacesreally really really awesome php application with bdd behat and iterfaces
really really really awesome php application with bdd behat and iterfaces
 
Slides
SlidesSlides
Slides
 
Feedback from an eclipse plugin developer to provide support to large set of ...
Feedback from an eclipse plugin developer to provide support to large set of ...Feedback from an eclipse plugin developer to provide support to large set of ...
Feedback from an eclipse plugin developer to provide support to large set of ...
 
Extensiones In PHP
Extensiones In PHPExtensiones In PHP
Extensiones In PHP
 
Php[tek] 2016 - BDD with Behat for Beginners
Php[tek] 2016 - BDD with Behat for BeginnersPhp[tek] 2016 - BDD with Behat for Beginners
Php[tek] 2016 - BDD with Behat for Beginners
 

Viewers also liked

tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
WE-IT TUTORIALS
 

Viewers also liked (10)

.Net
.Net.Net
.Net
 
C# everywhere - Building Cross-Platform Apps with Xamarin and MvvmCross
C# everywhere - Building Cross-Platform Apps with Xamarin and MvvmCrossC# everywhere - Building Cross-Platform Apps with Xamarin and MvvmCross
C# everywhere - Building Cross-Platform Apps with Xamarin and MvvmCross
 
History of C#
History of C#History of C#
History of C#
 
introduction to c #
introduction to c #introduction to c #
introduction to c #
 
C#.NET
C#.NETC#.NET
C#.NET
 
CSharp Presentation
CSharp PresentationCSharp Presentation
CSharp Presentation
 
C# basics
 C# basics C# basics
C# basics
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
 
C# Tutorial
C# Tutorial C# Tutorial
C# Tutorial
 
Programming in c#
Programming in c#Programming in c#
Programming in c#
 

Similar to What’s new in CSharp6

Similar to What’s new in CSharp6 (20)

A lap around visual studio 2015 and c sharp
A lap around visual studio 2015 and c sharpA lap around visual studio 2015 and c sharp
A lap around visual studio 2015 and c sharp
 
Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014
 
What's New in C# 6
What's New in C# 6What's New in C# 6
What's New in C# 6
 
What's coming in c# 9.0
What's coming in c# 9.0What's coming in c# 9.0
What's coming in c# 9.0
 
Gitlab ci, cncf.sk
Gitlab ci, cncf.skGitlab ci, cncf.sk
Gitlab ci, cncf.sk
 
Stopping the Rot - Putting Legacy C++ Under Test
Stopping the Rot - Putting Legacy C++ Under TestStopping the Rot - Putting Legacy C++ Under Test
Stopping the Rot - Putting Legacy C++ Under Test
 
Як РНР розробник пише код на Kotlin
Як РНР розробник пише код на KotlinЯк РНР розробник пише код на Kotlin
Як РНР розробник пише код на Kotlin
 
Front-end development introduction (JavaScript). Part 2
Front-end development introduction (JavaScript). Part 2Front-end development introduction (JavaScript). Part 2
Front-end development introduction (JavaScript). Part 2
 
Knowledge sharing session Java 9
Knowledge sharing session Java 9Knowledge sharing session Java 9
Knowledge sharing session Java 9
 
Euro python 2015 writing quality code
Euro python 2015   writing quality codeEuro python 2015   writing quality code
Euro python 2015 writing quality code
 
Adobe Presents Internal Service Delivery Platform at Velocity 13 Santa Clara
Adobe Presents Internal Service Delivery Platform at Velocity 13 Santa ClaraAdobe Presents Internal Service Delivery Platform at Velocity 13 Santa Clara
Adobe Presents Internal Service Delivery Platform at Velocity 13 Santa Clara
 
Release with confidence
Release with confidenceRelease with confidence
Release with confidence
 
How to set up an ASP.NET 5 Continuous Delivery Pipeline using IBM Bluemix Dev...
How to set up an ASP.NET 5 Continuous Delivery Pipeline using IBM Bluemix Dev...How to set up an ASP.NET 5 Continuous Delivery Pipeline using IBM Bluemix Dev...
How to set up an ASP.NET 5 Continuous Delivery Pipeline using IBM Bluemix Dev...
 
Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...
Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...
Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...
 
Flexible delivery options
Flexible delivery options Flexible delivery options
Flexible delivery options
 
Oop l2
Oop l2Oop l2
Oop l2
 
Rene Groeschke
Rene GroeschkeRene Groeschke
Rene Groeschke
 
Ionic framework one day training
Ionic framework one day trainingIonic framework one day training
Ionic framework one day training
 
ABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDDABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDD
 
Test Driven Development #sitFRA
Test Driven Development #sitFRATest Driven Development #sitFRA
Test Driven Development #sitFRA
 

What’s new in CSharp6

Editor's Notes

  1. Spre deosebire de introducerea de generice in C# 2.0, de modul revolutionar de a folosi colectiile cu LINQ in C# 3.0 sau simplificarea folosirii patternurilor de programare asyncrona in C# 5, C# 6 nu are de gand sa transforme dezvoltarea. Acestea fiind zise, C# 6 va schimba modul de a scrie cod C# in anumite scenarii specifice, ca urmare a schimbarilor noi (features) care sunt mult mai eficiente si cu siguranta veti uita faptul ca mai exista si un alt mod de a scrie acea bucata de cod.
  2. Prin urmare, C# 6 aduce: Acesta introduce noi sintaxe, scurtaturi, reduce numarul de linii de cod in anumite conditii si in cele din urma va face scrierea de cod C# mai usoara si permite limbajului sa fie mai flexibil.
  3. Acesta introduce noi sintaxe, scurtaturi, reduce numarul de linii de cod in anumite conditii si in cele din urma va face scrierea de cod C# mai usoara si permite limbajului sa fie mai flexibil. Makes the write coding patterns simpler Eg: Null-conditional operator of a delegate - At least not in the way that generics or LINQ did
  4. Acesta introduce noi sintaxe, scurtaturi, reduce numarul de linii de cod in anumite conditii si in cele din urma va face scrierea de cod C# mai usoara si permite limbajului sa fie mai flexibil. Makes the write coding patterns simpler Eg: Null-conditional operator of a delegate - At least not in the way that generics or LINQ did