GetLanguageItem() public static méthode

Gets the language item.
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
Résultat System.Item
Exemple #1
0
        /// <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));
        }