typeof

Type t = typeof(SampleClass);
      // Alternatively, you could use
      // SampleClass obj = new SampleClass();
      // Type t = obj.GetType();
posted @ 2009-09-20 15:30  greencolor  阅读(166)  评论(0编辑  收藏  举报