コード例 #1
0
 public override PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes)
 {
     if (component != null)
     {
         return(MethodUtils.GetMethodProperties(component));
     }
     return(null);
 }
コード例 #2
0
 private void ResolveParameters()
 {
     if (parameterDescriptors != null)
     {
         return;
     }
     parameterDescriptors = MethodUtils.GetMethodParams(this);
     returnDescriptor     = new ReturnParameterDescriptor(this);
 }
コード例 #3
0
 protected override void FillAttributes(IList attributeList)
 {
     base.FillAttributes(attributeList);
     attributeList.Add(new EditorAttribute(typeof(MethodEditor), typeof(UITypeEditor)));
     attributeList.Add(new RefreshPropertiesAttribute(RefreshProperties.Repaint));
     attributeList.Add(new CategoryAttribute(depth.ToString() + ". " + this.ownerType.Name + "( " + MethodUtils.GetMethodAccessShort(this.methodInfo) + ")"));
     attributeList.Add(new DesignerAttribute(typeof(MethodDesigner), typeof(IDesigner)));
 }