I have a class which give me this error
public class Item { public string Name; public int Id public Item(string name, int id) { N
if (lstItems.Count > 0) { comboBox1.DataSource = lstItems; comboBox1.DisplayMember = "Name"; comboBox1.ValueMember = "Id"; }