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