Beispiel #1
0
        public override Action <T, object> CreateSet <T>(PropertyInfo propertyInfo)
        {
            ValidationUtils.ArgumentNotNull(propertyInfo, "propertyInfo");

            return((o, v) => propertyInfo.SetValue(o, v, null));
        }
Beispiel #2
0
        public override Func <T, object> CreateGet <T>(FieldInfo fieldInfo)
        {
            ValidationUtils.ArgumentNotNull(fieldInfo, "fieldInfo");

            return(o => fieldInfo.GetValue(o));
        }
Beispiel #3
0
        public override Action <T, object> CreateSet <T>(FieldInfo fieldInfo)
        {
            ValidationUtils.ArgumentNotNull(fieldInfo, "fieldInfo");

            return((o, v) => fieldInfo.SetValue(o, v));
        }
Beispiel #4
0
        public override Func <T, object> CreateGet <T>(PropertyInfo propertyInfo)
        {
            ValidationUtils.ArgumentNotNull(propertyInfo, "propertyInfo");

            return(o => propertyInfo.GetValue(o, null));
        }