Expression-bodied methods is another feature in C# 6.0 that simply the syntactic expression in C# . We are already familiar with Lambda expression that associate with function and call by a delegation. Expression-bodied members extend the similar use of lambda expressions for methods. Following code block show, we have a GetTime() method that returns a [...]
↧