Adds a text and value to a System.Web.UI.WebControls.ListItemCollection as a new ListItem.
public static void Add(this System.Web.UI.WebControls.ListItemCollection items,
string text, string value)
The text value of the new list item.
The value field of the new list item.
var items = new System.Web.UI.WebControls.ListItemCollection();item.Add("My Text", "MyValue");