InterviewSolution
Saved Bookmarks
| 1. |
How to set 5-item tuple in C#? |
|
Answer» To set 5-item tuple in C#, set it like this: var t = new Tuple<string, string[], int, int, int>("laptop", new string[] { "memoy CARD", "pen drive" }, 30, 40, 50);Above, the tuple has string, string array, and three integer tuples. Therefore, MAKING it a 5-item tuple. The output: Tuple Item 1 = laptop Tuple Item 4 = 40 Tuple Item 5 = 50 |
|