Example #1
0
        public static object FastGetValue(this PropertyInfo propertyInfo, object obj)
        {
            if (propertyInfo == null)
            {
                throw new ArgumentNullException("propertyInfo");
            }

            return(GetterSetterFactory.GetPropertyGetterWrapper(propertyInfo).Get(obj));
        }
Example #2
0
        public static void FastSetValue(this PropertyInfo propertyInfo, object obj, object value)
        {
            if (propertyInfo == null)
            {
                throw new ArgumentNullException("propertyInfo");
            }

            GetterSetterFactory.GetPropertySetterWrapper(propertyInfo).Set(obj, value);
        }