Chapter 1
New Features in C# 7.0
Section 9
Expression Bodies
Expression-bodied members have been a big hit with the C# developer community. We will now use this feature with – constructors, finalizers, and get and set accessors on properties and indexer. Also, we will look at throw expression. - Add the class some class and reduce the number of lines - Create an instance of the Chapter1 class and call the GetNameLength() method - Run your application