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
Post a Comment