Takes a dictionary of values and turns it into a SelectListItems enumeration. Converts the dictionary keys into the value and the dictionary value into the text.
public static IEnumerable<SelectListItem> SelectListItemsFromDictionary(IDictionary dict);
Parameters
dict
Assumes the dictionary keys and values can be turned into strings using ToString()
See also:
Class MvcHtmlUtils