GetType是一个方法,运行时获得类型。 typeof是一个操作符,编译时获得类型。 Type t1 = DateTime.Now.GetType(); // Type obtained at runtime Type t2 = typeof (DateTime); // Type obtained at compile time