Created
September 10, 2013 12:15
-
-
Save hagbarddenstore/6508572 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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