public void invokeSelectMethodForField(PropertyInfo field, object obj, object param, ElementInfo info) { if (info.hasPreparedInfo()) { info.PreparedInfo.invokeDoSelectMethod(obj, param); } else { CoderUtils.findDoSelectMethodForField(field, obj.GetType()).Invoke(obj, new object[] { param }); } }
private void setupAccessors(Type objectClass, PropertyInfo field) { try { this.doSelectMethod = CoderUtils.findDoSelectMethodForField(field, objectClass); } catch (Exception) {} try { isSelectedMethod = CoderUtils.findIsSelectedMethodForField(field, objectClass); } catch (Exception) {} try { isPresentMethod = CoderUtils.findIsPresentMethodForField(field, objectClass); } catch (Exception) {} }