Mirmal, I think English is not your first language, this question is not very clear. I think that what you are asking for is a list of your class, how you then bind this list to something (list or combobox, etc.).
Here is a simple piece of code on how to do this ...
private void button2_Click(object sender, EventArgs e) { List<MyClass> list = new List<MyClass>(); list.Add(new MyClass() { FirstName = "Tim", Lastname = "Jarvis"}); list.Add(new MyClass() { FirstName = "John", Lastname = "Doe" }); listBox1.DataSource = list; listBox1.DisplayMember = "FirstName";
I hope this answers your question.
Tim jarvis
source share