예제 #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;
 }