获取错误“ClassLibrary3.Class1.a”是“属性”,但使用像一个“类型”时,我想访问基类的属性。
namespace ClassLibrary3
{
public class Class1
{
public int a { get; set; }
public int A { get; set; }
}
public class test : Class1
{
a=1; // error 'ClassLibrary3.Class1.a' is a 'property' but is used like a 'type'
public void hello()
{
a = 10;
}
}
}