Ejemplo n.º 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));
 }
Ejemplo n.º 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)));
 }