private ICustomTypeDescriptor ( ) : System.ComponentModel.EventDescriptor | ||
return | System.ComponentModel.EventDescriptor |
EventDescriptor ICustomTypeDescriptor.GetDefaultEvent()
{
// Check to see if the provider we get is a ReflectTypeDescriptionProvider.
// If so, we can call on it directly rather than creating another
// custom type descriptor
TypeDescriptionProvider p = _node.Provider;
ReflectTypeDescriptionProvider rp = p as ReflectTypeDescriptionProvider;
if (rp != null)
{
return rp.GetExtendedDefaultEvent(_instance);
}
ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance);
if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
return desc.GetDefaultEvent();
}
TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor::ICustomTypeDescriptor ( ) : |
|
TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor::ICustomTypeDescriptor ( ) : |
|
TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor::ICustomTypeDescriptor ( |
|
TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor::ICustomTypeDescriptor ( ) : |
|
TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor::ICustomTypeDescriptor ( ) : |
|
TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor::ICustomTypeDescriptor ( |
|
TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor::ICustomTypeDescriptor ( ) : |
|
TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor::ICustomTypeDescriptor ( |
|
TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor::ICustomTypeDescriptor ( |
|
TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor::ICustomTypeDescriptor ( ) : string |