Expression-bodied members
Expression-bodied members (C# Programming Guide)
invocable members(function members):
- method
- property get, set
- indexer
- constructor
- finalizer
当这些成员的 body 只有一个表达式时,可以用下面语法
member => expression;
不需要使用 return。
Expression-bodied members (C# Programming Guide)
invocable members(function members):
当这些成员的 body 只有一个表达式时,可以用下面语法
member => expression;
不需要使用 return。