Beispiel #1
0
        public static BlueprintManager Provide <T> (this BlueprintManager manager, T provider) where T : class, IBlueprintProvider
        {
            var blueprintList = provider.GetBlueprintList();

            manager.AddBlueprintRange(blueprintList);
            return(manager);
        }
Beispiel #2
0
        public static BlueprintManager Provide <T> (this BlueprintManager manager) where T : class, IBlueprintProvider
        {
            var provider      = Activator.CreateInstance <T> ();
            var blueprintList = provider.GetBlueprintList();

            manager.AddBlueprintRange(blueprintList);
            return(manager);
        }