src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/DropDownControl.cs
/// <summary>
///     Gets the service provided by this TypeEditorHost.
/// </summary>
/// <param name="serviceType">type of service being requested.</param>
/// <returns></returns>
Gets the service provided by this TypeEditorHost.
Gets the service provided by this TypeEditorHost .
protected object ServiceProviderGetService(Type serviceType)
        {
            if (serviceType == typeof(IWindowsFormsEditorService)
                || serviceType == typeof(ITypeDescriptorContext))
            {
                return this;
            }
            if (Site != null)
            {
                return Site.GetService(serviceType);
            }
            return null;
        }
protected object ServiceProviderGetService ( Type serviceType ) { if ( serviceType == typeof ( IWindowsFormsEditorService ) || serviceType == typeof ( ITypeDescriptorContext ) ) { return this ; } if ( Site != null ) { return Site . GetService ( serviceType ) ; } return null ; }
Gets the service provided by this TypeEditorHost.
Gets the service provided by this TypeEditorHost .
// services we support // delegate to our site for other services
None
serviceType
Type
type of service being requested.
type of service being requested .