How do i do a list with multiple types?

Hi. I need something I couldn't find (propably because it doesnt exists) but It's some sort of a List with multiple types.

I imagine it working like this:

int age; DateTime yourNameDay; List<String,Object> myList = new List<String, Object>(); myList.Add("Your Age", age); myList.Add("Your saint's day", yourNameDay); 

It would be cool if something like this would exist. Please tell me how i could accomplish this.

by Jonas_Dralle via /r/csharp

Leave a Reply