Example #1
0
 public static IEnumerable <SelectListItem <bool?> > GetTrueFalseItems(string trueLabel, string falseLabel)
 {
     return(new[] { SelectListItem.Create <bool?>(true, trueLabel), SelectListItem.Create <bool?>(false, falseLabel) });
 }
Example #2
0
 internal ListItem(SelectListItem <ItemIdType> item, bool isValid, bool isPlaceholder)
 {
     this.item          = item;
     this.isValid       = isValid;
     this.isPlaceholder = isPlaceholder;
 }