i was wondering, can a list<T> have a name property?
why do i ask?
well, i have about 12 lists created programmaticaly (all of which are public static lists of string type).
what i want to do is load all of there NAMES into a combocbox (and by NAME i mean an interface name (for the user to see, insted of the raw instance name of a list)
public static List<string> AllItemsList = new List<string(); public static List<string> LabelsList= new List<string(); public static List<string> AuthorsList= new List<string();
Insted of adding them like this into a combobox (using hard coded strings):
CheckBox1.Items.Add("All Items") CheckBox1.Items.Add("Labels") CheckBox1.Items.Add("Authors")
I want something more like this (:
CheckBox1.Items.Add(AllItemsList.Name) CheckBox1.Items.Add(LabelsList.Name) CheckBox1.Items.Add(AuthorsList.Name)
is it bossible?
i don't have any idea where to start...