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