コード例 #1
0
        internal CachedProperty(PropertyInfo propertyInfo)
        {
            if (propertyInfo.CanRead)
            {
                _get = CustomFastReflectionHelper.CreateFastDelegate(propertyInfo.GetGetMethod(true));
            }

            if (propertyInfo.CanWrite)
            {
                _set = CustomFastReflectionHelper.CreateFastDelegate(propertyInfo.GetSetMethod(true));
            }

            PropertyType = propertyInfo.PropertyType;
        }
コード例 #2
0
 internal CachedMethod(MethodInfo method)
 {
     _invoke = CustomFastReflectionHelper.CreateFastDelegate(method);
 }