public static GetLanguageItem ( System.Item foundItem, System.Language language, IItemVersionHandler versionHandler ) : System.Item | ||
foundItem | System.Item | The found item. |
language | System.Language | The language. |
versionHandler | IItemVersionHandler | |
return | System.Item |
/// <summary> /// Gets the language items. /// </summary> /// <param name="foundItems">The found items.</param> /// <param name="language">The language.</param> /// <returns>IEnumerable{Item}.</returns> public static IEnumerable <Item> GetLanguageItems(IEnumerable <Item> foundItems, Language language) { if (foundItems == null) { return(Enumerable.Empty <Item>()); } return(foundItems.Select(x => Utilities.GetLanguageItem(x, language)).Where(x => x != null)); }