om prakash

om prakash

  • NA
  • 281
  • 103.9k

Error:sequence contains no matching element

Sep 30 2013 2:19 AM
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)