C#获取一个System.Type

示例

对于类型的实例:

var theString = "hello";
var theType = theString.GetType();

从类型本身:

var theType = typeof(string);