我有一个 product.aspx 类。
在我的AppCode中,我有一个名为product.cs的类。
public partial class _Products : Product
{
protected void Page_Load(object sender, EventArgs e)
{
Product p1 = new Product();
p1.m1(); ///here I am facing problem y intelligence system not allowing me access the product class method m1();
}
new virtual int m1()
{
return 10;
}
}
在我的AppCode中,我有一个名为product.cs的类。
public class Product
{
public Product()
{
//
// TODO: Add constructor logic here
//
}
protected void m1()
{
}
public void m2()
{
}
问题是,p1.m1(); 在这里我遇到了问题,我的智能系统不允许我访问产品类的方法m1();