public bool ConsumeImage(AdaptiveBlockImageCategoryHints category, out AdaptiveBlockImage image) { return(ConsumeImage(i => i.Hints.Category.Contains(category), out image)); }
private bool ConsumeImage(AdaptiveBlockImageCategoryHints preferredCategory, List <AdaptiveBlockImageCategoryHints> categoriesToAvoid, out AdaptiveBlockImage image) { return(ConsumeImage(i => i.Hints.Category.Contains(preferredCategory) && i.Hints.Category.All(c => !categoriesToAvoid.Contains(c)), out image)); }