コード例 #1
0
        /// <summary>
        /// Returns the selected ListItem's values from the ListItemCollection
        /// </summary>
        public static IEnumerable <string> SelectedValues(this ListItemCollection value)
        {
            var items = value.SelectedItems();

            if (items.Count() == 0)
            {
                return(new Collection <string>());
            }

            return(items.Select(x => x.Value));
        }