Is there any way to add dictionaries and lists mixed into a list without using List<Object>?
list.add(someList);
list.add(someDict);
Edit: why i need it? That was my first thought too^^. because i receive that kind of objects and i “should” use them. And i need the keys to check for a velue of a specific key.
I guess thats the structure:
List<String> list1 = new List<String>();
Dictionary<String,String> dict1= new Dictionary<String,String>();
list.add(list1);
list.add(dict1);
EDIT2: And it has to have AWESOME performance, when iterating! I was not sure how Object would perform.
Yes, you can use
List<IEnumerable>. It’s up for debate if that is much better though.