Can you create tuple with field names?

Hi all,

Is it possible to create tuples with field names in UiPath?
Normally in code I would do something like:

var t = (Sum: 4.5, Count: 3);

However, I only seem to be able to create a tuple in an assign activity like below:

t = Tuple.Create(4.5, 3)


welcome to the forum

named tuples were later introduced, but is not available in current UiPath infrastructure:

As an alternate it could be handled with the help of a json string / Dictionary

the json string:
"{ โ€œโ€œSumโ€โ€: "โ€œ4.5"โ€, โ€œโ€œCountโ€โ€: โ€œโ€œ3"โ€}โ€

the deserialization into a dictionary

Newtonsoft.Json.JsonConvert.DeserializeObject(Of Dictionary (Of String, String))("{ ""Sum"": ""4.5"", ""Count"": ""3""}")