c# - Is it possible to get a reference to MyList<Object> if the listname is a string "myList" -


i have lists of type observablecollection<sampleobject>
end letter of alphabet: lista, listb, listc...
want make loop runs through alphabet , @ every letter should add item current list.

example:

for (char = 'a'; < 'z'; i++)   {       string name = "list" + i;     name.add(.....); } 

the "name" in example should list want add item.

you want dictionary<char, observablecollection<sampleobject>>, have different collection each char.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -