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

GetService() protected method

[To be supplied.]

protected GetService ( Type service ) : object
service Type
return object
        protected virtual object GetService(Type service)
        {
            return ((service == typeof(IContainer)) ? this : null);
        }

Usage Example

Example #1
0
 public Object GetService(Type service)
 {
     return((service == typeof(ISite)) ? this : _container.GetService(service));
 }