如下两种写法(C#),有什么区别吗?
对于调用PopupForm的函数或继承PopupForm 函数等,有什么影响吗?第一种:namespace A{
public abstract class BaseForm : System.Windows.Forms.Form
{
public BaseForm()
{
}
}
}namespace A{
public class PopupForm : BaseForm
{
}
}第二种:namespace A{
public class PopupForm : System.Windows.Forms.Form {
}
}
对于调用PopupForm的函数或继承PopupForm 函数等,有什么影响吗?第一种:namespace A{
public abstract class BaseForm : System.Windows.Forms.Form
{
public BaseForm()
{
}
}
}namespace A{
public class PopupForm : BaseForm
{
}
}第二种:namespace A{
public class PopupForm : System.Windows.Forms.Form {
}
}
但用第一种方式写的话,,点击PopupForm的时候,报错:To prevent possible data loss before loading the designer, the following errors must be resolved.
所以不知,这种情况改怎么弄呢,,,
但用第一种方式写的话,,点击PopupForm的时候,报错:To prevent possible data loss before loading the designer, the following errors must be resolved.
所以不知,这种情况改怎么弄呢,,,
就是第一种就报错误,,点击PopupForm的时候,Design模式报上面错误.
就是在design模式下,报错误..