Is there a way to remove items开发者_开发知识库 from a SelectList?
No; it's immutable.
Instead, you can build a copy with a Where
call:
var copy = new SelectList(original.Items.Cast<...>().Where(...));
Is there a way to remove items开发者_开发知识库 from a SelectList?
No; it's immutable.
Instead, you can build a copy with a Where
call:
var copy = new SelectList(original.Items.Cast<...>().Where(...));
精彩评论