1
Answer

Error:sequence contains no matching element

om prakash

om prakash

11y
1.9k
1
Hi,

 i want defaultely string to display in Combo box. i have use this code but i am receiving errors


             HourTypes = new EnumToDropdownMapper().Map<HourType>().OrderBy(x => x.Description).ToList();---> Error
            var hourtype = HourTypes.Single(type => type.Description == HourType.NormalTime.ToString());
            SelectedHourType = hourtype;


Error:sequence contains no matching element 


Please help me i want to bind from  enum values
Answers (1)