Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

list to list c#

List<SelectListItem> item = YearList.ConvertAll(a =>
                {
                    return new SelectListItem()
                    {
                        Text = a.ToString(),
                        Value = a.ToString(),
                        Selected = false
                    };
                });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list
ADD COMMENT
Topic
Name
7+6 =