示例#1
0
 private static PropertyInfo GetProperty(SettingsModel model)
 {
     return Types.SelectMany(t => t.GetProperties(BindingFlags.Static | BindingFlags.Public))
                 .SingleOrDefault(x => x.Name.Equals(model.Name, StringComparison.OrdinalIgnoreCase));
 }
示例#2
0
 private static PropertyInfo GetProperty(SettingsModel model)
 {
     return(Types.SelectMany(t => t.GetProperties(BindingFlags.Static | BindingFlags.Public))
            .SingleOrDefault(x => x.Name.Equals(model.Name, StringComparison.OrdinalIgnoreCase)));
 }