I am trying to loop through 2 lists using this code
foreach (string str1 in list<string>tags)
{
foreach (string str2 in list<string>ArchivedInformation) { }
}
The first list has tags which is stored as "tag1, tag2,tag3.." and the second list has information stored as "tag1, Datestamp, 0.01","tag2, datestamp, 0.02" and so on.
I would like to ask how can I get the Tags in the second list and use it as a condition to my first for each? I have tried splitting the second list but i am cannot get the exact "Tag1" as an id to use it as a condition.
In the end the goal I would want to do is Str1(from tags list) == Str2(From Archivedinformation).