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