我有2类的是否有可能拥有2个基类已经从继承或知道第三个普通类继承?
类1.
public class BaseContentPage : System.Web.UI.Page
{
}
类2
public class BaseUserControl : System.Web.UI.UserControl
{
}
,现在我希望他们知道这个类的。
public class BaseCommon
{
public string Variable1 { get; set; }
public string Variable2 { get; set; }
public string Variable3 { get; set; }
}
如何我目前做的是通过使BaseCommon类的静态变量,像这样
public static string Variable1 { get; set; }
public static string Variable2 { get; set; }
public static string Variable3 { get; set; }
我还能怎么办呢?
嘿,我打算说;-) – 2009-10-14 01:33:47