public static List <Property> getPropertiesToInject(object o) { var members = getPropertiesAnnotatedWith(o.GetType(), typeof(Inject)).Select(f => new Property(f, KeyProducer.produceKey(f))).ToList(); return(members); }
public static List <Field> getFieldsToInject(object o) { var members = getFieldsAnnotatedWith(o.GetType(), typeof(Inject)).Select(p => new Field(p, KeyProducer.produceKey(p))).ToList(); return(members); }