Reputation: 91
I have 2 Lists. First one is Type string
. The second is type object
. Now I want to get both lists into a Tuple<string,object>
.
like this
var List = new(string list1, object list2)[]
How do I do this?
I had to create 2 seperate lists, because I am Serializing the object and the serializing wouldn't work if i had a List<Tuple<string,object>>
in the first place.
Both lists can get big so maybe with foreach loop?
Upvotes: 5
Views: 10165