列表 第页
我读的地方摘要和sealed修饰符相当于一类是静态的 我还发现,在声明静态类,内部编译器标志着类抽象和密封,并在IL code创建一个私有的构造函数 所以,我决定做这一点:so, I decided to do this:static class A{public static void test(){Con...阅读全文
这是不可能从一个C#结构继承。这不是明显对我来说这是为什么:It's not possible to inherit from a C# struct. It's not obvious to me why this is:显然,你不能有继承值类型引用类型;这将无法正常工作这听起来并不合理地从一个继承原始类型(的I...阅读全文