Skip to main content

Posts

Showing posts with the label Ref returns and ref Locals

New Features in C# 7 with Visual Studio 2017

Added and Improvements New Features in C# 7.0 with Visual Studio 2017 - 1.      Added Binary Literal 2.      Added Digit Separators 3.      Added Pattern Matching 4.      Added Ref returns and ref Locals 5.      Added some Tuples Enhancement 6.      Local Function 7.      Throw Expressions 8.      Added some expression bodied members like constructor, destructor, getters and setters in C# 7 9.      Added some enhancement for out variables 10. Deconstruction Binary Literals -Improvements int [] numbers = { 1, 2, 4, 6, 12, 40 }; int [] numbers = { 0b1, 0b10, 0b100, 0b1000, 0b10000, 40 }; Digit Separators - Digit separators inside the numbers Literal Digit Allows underscore (_) inside numbers var x = 1234_5435; var y = 0xABCD_EFG_IJ int [] numbers = { 0b1, 0b10, 0b100,...