反射 用法 实例汇总

获取引入进来的DLL中类的所有属性名称,作为新的DICT的名称

static Dictionary<string, System.Reflection.PropertyInfo> properties = typeof(TransactionalEmailSendRequest).GetProperties().ToDictionary(p => p.Name);

原文地址:https://www.cnblogs.com/niaowo/p/3685528.html