Hi,
I have two lists - list1 and list2. i want to concatinate list 1 item + list 2 item and save to txt file.below code is not working how we can loop parellely?
foreach (string code in List1)
{
for (int i = 0; i < List2.Count; i++)
{
if (code != "")
{
string total = code + ", " + "'" + List2[i] + "')";
fullcode.Add(total);
}
}
}
Muhammad Imran AnsariPosted May 12, 2022, 5:52 PM
Sachin SinghPosted May 12, 2022, 3:48 PM
Sujeet RamanPosted May 12, 2022, 3:11 PM
Nitin SontakkePosted May 12, 2022, 2:54 PM
Sujeet RamanPosted May 12, 2022, 2:41 PM
Nitin SontakkePosted May 12, 2022, 2:19 PM