typeof

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