现在的位置: 首页 > 综合 > 正文

自定义控件继承树

2012年09月30日 ⁄ 综合 ⁄ 共 373字 ⁄ 字号 评论关闭
FlowGroupEditField_ascx

-UserControl

--TemplateControl

---Control

----Object

    void Page_Load(object sender, EventArgs e)

    
{

        
string c = "";

        Type t 
= this.GetType();

        
for (int i = 0; i < 20; i++)

        
{

            Response.Write(
"<br>" + c + t.Name);

            c 
+= "-";

            t 
= t.BaseType;

            
if (t == nullbreak;

        }


        

    }

抱歉!评论已关闭.