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 + ". " + _ownerType.Name + "( " + MethodUtils.GetMethodAccessShort(MethodInfo) + ")")); attributeList.Add(new DesignerAttribute(typeof(MethodDesigner), typeof(IDesigner))); }