public class StaticTestCls
{
public int x = 0;
public static int y = 0;
private void SetValue_Object()
{
x = 1;
y = 1;
}
public static void SetValue_Static()
{
x = 2; //Error 要求对象引用
y = 2;
}
}