コード例 #1
0
 public PropertyHandler(PropertyInfo property)
 {
     if (property.CanWrite)
     {
         mSetValue = ReflectionHandlerFactory.PropertySetHandler(property);
     }
     if (property.CanRead)
     {
         mGetValue = ReflectionHandlerFactory.PropertyGetHandler(property);
     }
     mProperty     = property;
     IndexProperty = mProperty.GetGetMethod().GetParameters().Length > 0;
 }
コード例 #2
0
 public FieldHandler(FieldInfo field)
 {
     mGetValue = ReflectionHandlerFactory.FieldGetHandler(field);
     mSetValue = ReflectionHandlerFactory.FieldSetHandler(field);
     Field     = field;
 }
コード例 #3
0
 public InstanceHandler(Type type)
 {
     mInstance = ReflectionHandlerFactory.InstanceHandler(type);
 }
コード例 #4
0
 public MethodHandler(MethodInfo method)
 {
     mExecute = ReflectionHandlerFactory.MethodHandler(method);
     mInfo    = method;
 }