0

I want to use a tuple as an input argument for my function.

public void Sync(IEnumerable<Tuple<string, double>> labels)

But I also want to give the string and double a name. But I can't get the syntax right. I am looking at all kinds of other blogs about named tuples, but no one seem to named their tuples in the functions. Is it even possible?

I would expect it to look like this.

public void Sync(IEnumerable<Tuple<string Text, double Score>> labels)

0 Answers0