I am using C# and targeting the .NET Framework 3.5. I\'m looking for a small, succinct and efficient piece of code to copy all of the items in a ListBox to a List
List
How about this:
List myOtherList = (from l in lbMyListBox.Items.Cast() select l.Value).ToList();