private static void LoadTextures(TextureProvider provider, IEnumerable <TextureItem> items) { var all = items.Where(x => !TextureHelper.Exists(x.Name.ToLowerInvariant())).ToList(); if (!all.Any()) { return; } provider.LoadTextures(all); }
private static void LoadTextures(TextureProvider provider, IEnumerable<TextureItem> items) { var all = items.Where(x => !TextureHelper.Exists(x.Name.ToLowerInvariant())).ToList(); if (!all.Any()) return; provider.LoadTextures(all); }