EventDescriptor ICustomTypeDescriptor.GetDefaultEvent() { if (_readDefaultEvent == false) { _readDefaultEvent = true; DefaultEventAttribute attr = _td.GetAttributes()[typeof(DefaultEventAttribute)] as DefaultEventAttribute; if (attr != null && !string.IsNullOrEmpty(attr.Name)) { _defaultEvent = _typeDescriptionProvider.GetEvent(attr.Name); } } return(_defaultEvent); }