110,547
社区成员
发帖
与我相关
我的任务
分享
Type type = assembly.GetType(className, false, true);
object classInstance = Activator.CreateInstance(type);
PropertyInfo namePropertyInfo = type .GetProperty("Name");
string value = (string)namePropertyInfo .GetValue(classInstance, null); // 获取值