C# 6 New Features
-
Upload
zahid-mian -
Category
Technology
-
view
15 -
download
3
Transcript of C# 6 New Features
Zahid MianPart of the Brown-bag Series
Roslyn … in many ways a game-changer Devs can now write compiler level “add-ins”
Enforce Rules and/or Coding Standards
Roslyn Analyzer (https://msdn.microsoft.com/en-us/magazine/Dn879356.aspx)
https://github.com/DustinCampbell/CSharpEssentials
https://github.com/Wintellect/Wintellect.Analyzers
New Features “suck” if you get paid by the lines of code
Be careful not to “abuse” this feature
Output
When a function or property returns a value
Use lambda operator to return value
Reduces “cluttered” code
No Need to match up arguments; simply put the expression in curly braces
Support for IntelliSense
Syntactic sugar
Collection of Roslyn tools https://visualstudiogallery.msdn.microsoft.com/a4445ad0-f97c-41f9-a148-eae225dcc8a5
Recommends new features for you
Old Way
New Way