public override PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes) { if (component != null) { return(MethodUtils.GetMethodProperties(component)); } return(null); }
private void ResolveParameters() { if (parameterDescriptors != null) { return; } parameterDescriptors = MethodUtils.GetMethodParams(this); returnDescriptor = new ReturnParameterDescriptor(this); }
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))); }