PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() { if (_readDefaultProperty == false) { _readDefaultProperty = true; DefaultPropertyAttribute attr = _td.GetAttributes()[typeof(DefaultPropertyAttribute)] as DefaultPropertyAttribute; if (attr != null && !string.IsNullOrEmpty(attr.Name)) { _defaultProperty = _typeDescriptionProvider.GetProperty(attr.Name); } } return(_defaultProperty); }