System.ComponentModel.NestedContainer.GetService C# (CSharp) Method

GetService() protected method

[To be supplied.]

protected GetService ( Type service ) : object
service System.Type
return object
        protected override object GetService(Type service)
        {
            if (service == typeof(INestedContainer))
            {
                return this;
            }
            else
            {
                return base.GetService(service);
            }
        }

Usage Example

Example #1
0
            public virtual object GetService(Type service)
            {
                if (service == typeof(ISite))
                {
                    return(this);
                }

                return(_nestedContainer.GetService(service));
            }
All Usage Examples Of System.ComponentModel.NestedContainer::GetService