/// <summary> /// Get all managers matching the given type. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="items"></param> /// <returns> The number of managers added to the given list. </returns> public static int GetAllManagers <T>(List <T> items) where T : IManager { if (instance != null) // Ensure the instance exists { return(instance.GetAll <T>(items)); } else // Instance doesn't exist, cannot get managers { return(0); } }