Hi all,
I have two lists of string.
After filling them with some data, I do some work on them:
If a check is succesful inside both loops, I have to mark the current myData1 and myData2 by adding a "*" at the beginning.
How can I reference the current myData1 and myData2 string in order to add the "*" character, please?
Best regards,
Lorenzo
I have two lists of string.
C#:
List<string> myData1 = new List<string>();
List<string> myData2 = new List<string>();
After filling them with some data, I do some work on them:
C#:
foreach (string a in myData1)
{
foreach (string b in myData2)
{
// do some stuff
}
}
If a check is succesful inside both loops, I have to mark the current myData1 and myData2 by adding a "*" at the beginning.
How can I reference the current myData1 and myData2 string in order to add the "*" character, please?
Best regards,
Lorenzo
Last edited by a moderator: