Example #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));
 }
Example #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)));
 }