字符串转成对象

对象 变量 = (对象)System.Activator.CreateInstance(Type.GetType(字符串))
原文地址:https://www.cnblogs.com/linyijia/p/1796350.html