... 表达式可用于更多成员(More expression-bodied members) 表达式抛出异常(Throw expressions) 值类型的异步返回(Generalized async return types) ...
基于18个网页-相关网页
异常对象通过复制被抛出表达式的结果创建,该结果必须是可以复制的类型。
The exception object is created by copying the result of the thrown expression; that result must be of a type that can be copied.
当抛出一个表达式的时候,被抛出对象的静态编译时类型将决定异常对象的类型。
When an exception is thrown, the static, compile-time type of the thrown object determines the type of the exception object.
应用推荐