你应该初始化引用成员在成员初始化列表。
C + + reference cannot be assigned, therefore, it must be initialized in the initialization list.
托管类中不能有本身有成员初始化列表的静态构造函数。
A managed class cannot have a static constructor that also has a member initialization list.
catch子句既可以处理从成员初始化列表中抛出的异常,也可以处理从构造函数函数体中抛出的异常。
The catch clause can handle exceptions thrown either from within the member initialization list or from within the constructor body.
应用推荐