今天我开始上课.我创建了一些类来让我MainWindow.xmal.cs
更小一些.创建第一个类和调试后,我收到以下错误消息:
Eine nicht behandelte Ausnahme des Typs"System.StackOverflowException"ist in mscorlib.dll aufgetreten.
Eine nicht behandelte Ausnahme des Typs"System.StackOverflowException"ist in APPLICATION.exe aufgetreten.
class Sprachpaket_ENG_Template01 { MainWindow MW = new MainWindow(); public void Template01() { MW.checkBox_1_Bcc.Content = "Bcc:"; MW.checkBox_1_Cc.Content = "Cc:"; }
- >这会导致错误:MainWindow MW = new MainWindow();