Exemple #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;
 }
Exemple #2
0
 public FieldHandler(FieldInfo field)
 {
     mGetValue = ReflectionHandlerFactory.FieldGetHandler(field);
     mSetValue = ReflectionHandlerFactory.FieldSetHandler(field);
     Field     = field;
 }
Exemple #3
0
 public InstanceHandler(Type type)
 {
     mInstance = ReflectionHandlerFactory.InstanceHandler(type);
 }
Exemple #4
0
 public MethodHandler(MethodInfo method)
 {
     mExecute = ReflectionHandlerFactory.MethodHandler(method);
     mInfo    = method;
 }