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