public void ReadToObject(IDataReader reader, object obj) { //reader -> object prop if (SetMethod != null) { parameters[0] = dynaField.GetData(reader); SetMethod.Invoke(obj, parameters); } }
public override bool TryGetMember(GetMemberBinder binder, out object result) { result = null; try { IDynaField field = _record.FieldDict[binder.Name]; result = field.GetData(_reader); } catch (Exception) { } return(true); }