C# 7 and .NET Core Cookbook
上QQ阅读APP看书,第一时间看更新

throw expressions

Traditionally, throw has been a statement in C#. As we know, because it is a statement and not an expression, we could not use it in certain places. Thanks to expression-bodied members, C# 7.0 introduced throw expressions. There isn't any difference in how an exception is thrown, only in where you can throw them from.