Exemplo n.º 1
0
        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()));
        }
Exemplo n.º 2
0
 public Delegate CreateMethodDelegate(string methodName)
 {
     return(ObjectDelegate.CreateMethodDelegate(Owner.GetType(), methodName));
 }