src/Misc/EFTools/XmlCore/Core/Context/ServiceManager.cs
/// <summary>
///     Retrives the requested service.  This method returns null if the service could not be located.
/// </summary>
/// <typeparam name="ServiceType">The type of service to retrieve.</typeparam>
/// <returns>An instance of the service, or null if the service has not been published.</returns>
Retrives the requested service.  This method returns null if the service could not be located.
Retrives the requested service . This method returns null if the service could not be located .
public TServiceType GetService<TServiceType>()
        {
            var service = GetService(typeof(TServiceType));
            return (TServiceType)service;
        }
public TServiceType GetService < TServiceType > ( ) { var service = GetService ( typeof ( TServiceType ) ) ; return ( TServiceType ) service ; }
Retrives the requested service.
Retrives the requested service .
An instance of the service, or null if the service has not been published.
An instance of the service or null if the service has not been published .
typeparam
The type of service to retrieve.
The type of service to retrieve .