title: Is it possible to get the nth item in a tuple?
body: <p>I am passing a few optional arguments to a function as a tuple, since all of these have to be passed together or not at all. I would like to be able to iterate over the elements of the tuple numerically, and perform an operation on each item. For example:</p>
  
  <pre><code>Public Function myFunction(Optional t As Tuple(Of Integer, String, SomeType) = Nothing) As Integer
      For i = 0 to 2
          someCollection(i).someMethod(t(i)) 'Pseudocode for accessing ith item in tuple
      Next
  End Function
  </code></pre>
  
  <p>One way to resolve the problem would be to use a list, but then I lose the ability to enforce the number of members (which will always be fixed) and the types of each member. Another way would be to write out the statement three times with <code>t.Item1</code>, <code>t.Item2</code> etc, but this is ugly.</p>
  
  <p>Is there any way to access the <code>nth</code> item in a tuple?</p>
  
  <p>Note: I would like to accomplish this with a tuple if at all possible, even though I am aware I could create alternate method signatures.</p>