private void BuildAttributes_CustomEventProperty() { UICustomEventEditor.DelegateAttribute attr = new UICustomEventEditor.DelegateAttribute(MethodDelegate); oCustomAttributes = new AttributeCollection(new Attribute[] { attr }); }