To see this behavior in action, use the patch containing the new constructor, but before applying it, type your own, slightly different, constructor - like the one in Listing 8.
要查看这个行为的实际效果,可以使用含有新构造函数的补丁,但是在应用之前,输入您自己的、稍微有差异的构造函数—如清单8中所示。
The runtime will stop any exceptions trying to leave a type constructor and wrap the exception inside of a new TypeInitializationException object.
运行库将停止任何尝试保留类型构造函数的异常,并将该异常包装到一个新的 TypeInitializationException 对象内。
Lastly, a new constructor is defined that accepts an entity type, as shown in Listing 11.
最后,定义一个新的构造函数来接受一个实体类型,如清单11所示。
应用推荐