Tuple parameter declaration and assignment oddity

Viewed 2249

I can assign a tuple as follows:

var (min, max) = (1, 2)

But I cannot then re-assign as follows

(min, max) = (1, 3) //compiler error: ';' expected but '=' found

Instead I seem to have to do:

min = 1
max = 3

Why does the latter work whereas the former does not?

1 Answers
Related