typeof,gettype,is,as
摘要:
public class testclass { public string s = ""; public int i = 0; } testclass o = new testclass();System.Type t1 = typeof(testclass);System.Type t2 = o.GetType();if (o is testclass){MessageBox.Show("o ... 阅读全文
posted @ 2008-09-02 16:43 优雅小猪 阅读(461) 评论(0) 推荐(0) 编辑