public static BlueprintManager Provide <T> (this BlueprintManager manager, T provider) where T : class, IBlueprintProvider { var blueprintList = provider.GetBlueprintList(); manager.AddBlueprintRange(blueprintList); return(manager); }
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); }