namespace Torch.API.Managers { public static class DependencyProviderExtensions { /// /// Gets the manager that provides the given type. If there is no such manager, returns null. /// /// Type of manager /// manager, or null if none exists public static T GetManager(this IDependencyProvider depProvider) where T : class, IManager { return (T)depProvider.GetManager(typeof(T)); } } }