Hi all,
I’m going through the training material and have a question regarding the for each loop that is applied to array of strings.
https://academy.uipath.com/lms/index.php?r=player&course_id=1&coming_from=lp&id_plan=22#training
As the loop goes through the array of strings it ‘write lines’ a phrase with each of the members of the array (which are all strings) each time it goes through the loop.
My question is why does the item variable which stores the string, have to be converted using .ToString to attach it to the rest of the string (why is item an object and not a string as we are talking about an array of strings, whats the point in defining the array as an array of strings in the first place?).
Sorry if this is a stupid question.
Thanks,