Beispiel #1
0
 public FieldAccessor(FieldInfo Field)
 {
     getMethodHandler = BaseFieldAccessor.GetFieldInvoker <TargetType, FieldType>(Field);
     setMethodHandler = BaseFieldAccessor.SetFieldInvoker <TargetType, FieldType>(Field);
 }
Beispiel #2
0
 public FieldAccessor(string Field)
 {
     getMethodHandler = BaseFieldAccessor.GetFieldInvoker <TargetType, FieldType>(typeof(TargetType).GetField(Field));
     setMethodHandler = BaseFieldAccessor.SetFieldInvoker <TargetType, FieldType>(typeof(TargetType).GetField(Field));
 }