public virtual bool invokeSelectedMethodForField(PropertyInfo field, object obj, ElementInfo info) { if (info != null && info.hasPreparedInfo()) { return((bool)info.PreparedInfo.invokeIsSelectedMethod(obj, null)); } else { MethodInfo method = CoderUtils.findIsSelectedMethodForField(field, obj.GetType()); return((bool)method.Invoke(obj, null)); } }
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) {} }