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