Let s focus at first to: How to store elements, by creating a tuple
we can create:
When it is about adding, then maybe a list of Tuple(Of Int32, String) will better serve as we can add new tuples to the list
But the Tuple struct has no add method
We would recommend to check the business case and check if other datatypes / datastructures will better serve
When the names should be represented by a number:
array and item position
dictionary( of int32, String)
are maybe a better choice
Coming back to the strength of tuples: When different datatypes are to handle / kept and we do look for a datatype safe approach then tuples are helping much.
But as mentioned above we maybe can better handle the case with alternates
Feel free to tell us more about your business case
Also have a look here:
in other .Net editions and newer versions other functionalities were introduced
Hi @Doonline, I hope you are doing well.
To answer your question if you want a key value which is here roll number and map it with a value which is names here. According to me you can make use of dictionary rather than tuples in UIPath as it will be more convenient. For dictionaries I will attach a sample workflow which might help you.