静态成员类加载就有初始值了 int默认为0,string默认为null,要初始化你想要的值就直接赋值,如static int i = 4;
public class Test { public static int a; static { a = 10; }}
是地方将开始的回复可见