public Delegate CreateSetPropertyDelegate(string propertyName) { Type type = Owner.GetType(); PropertyInfo propInfo = type.GetProperty(propertyName); if (propInfo == null) { throw new MissingMemberException("Not found property " + propertyName); } return(ObjectDelegate.CreateMethodDelegate(propInfo.GetSetMethod())); }
public Delegate CreateMethodDelegate(string methodName) { return(ObjectDelegate.CreateMethodDelegate(Owner.GetType(), methodName)); }