解决方法
一个基类构造函数被称为first.Refer到以下示例
// Demonstrate when constructors are called. using System; // Create a base class. class A { public A() { Console.WriteLine("Constructing A."); } } // Create a class derived from A. class B : A { public B() { Console.WriteLine("Constructing B."); } } // Create a class derived from B. class C : B { public C() { Console.WriteLine("Constructing C."); } } class OrderOfConstruction { static void Main() { C c = new C(); } } The output from this program is shown here: Constructing A. Constructing B. Constructing C.