
class One {
public int num1;
public class Two {
public int num2;
}
}
class Demo {
static void Main() {
One a = new One();
a.num1++;
One.Two ab = new One.Two();
ab.num2++;
}
}以上がC# のネストされたクラスの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。