Skip to content

Instantly share code, notes, and snippets.

@hagbarddenstore
Created September 10, 2013 12:15
Show Gist options
  • Save hagbarddenstore/6508572 to your computer and use it in GitHub Desktop.
Save hagbarddenstore/6508572 to your computer and use it in GitHub Desktop.
void Main()
{
var tuples = new[]
{
new Tuple<char, int, int>('z', 2, 3),
new Tuple<char, int, int>('y', 4, 5)
};
foreach (var tuple in tuples)
{
Console.WriteLine(tuple.Item1);
}
}
public struct Tuple<T1, T2, T3>
{
public readonly T1 Item1;
public readonly T2 Item2;
public readonly T3 Item3;
public Tuple(T1 item1, T2 item2, T3 item3)
{
Item1 = item1;
Item2 = item2;
Item3 = item3;
}
}
// Define other methods and classes here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment