I got compiling error below:
Argument 2: cannot convert from 'System.Collections.Generic.IEnumerable' to 'string'
Argument 3: cannot convert from 'System.Collections.Generic.IEnumerable' to 'string'
How to fix this error?
void Main()
{
SortedDictionary<int, string> items = new SortedDictionary<int, string>{{1, "apple"}, {2, "book"}, {3, "tree"}, {4, "mazagine"}, {5, "orange"}};
MultiSelectList msl = new MultiSelectList(items, items.Select(o => o.Key), items.Select(o => o.Value), items.Where(i => i.Key == 1 || i.Key == 5)).Dump();
}