return two values
I have this function that returns two values, and I want to use it in the main, but I don't know how to assign to each thing its corresponding value, any help?
3 Replies
Deconstructing tuples and other types
Learn how to deconstruct tuples and other types.
try
var (posicion, contador) = Funciones.CantidadVeces();
also, always use english words in names of methodsty!
this is class work and we put it all in our own language (at least for now) but thanks for the advice