23
1
using System;
2
using System.Collections.Generic;
3
namespace TulesDemo
4
{
5
public class Program
6
{
7
public static void Main()
8
{
9
Tuple<string, string, string> t = GetNames();
10
Console.WriteLine("Received names are {0}, {1}, {2}", t.Item1, t.Item2, t.Item3);
11
}
12
13
//The function return type as Tuple<string, string, string>
14
private static Tuple<string, string, string> GetNames()
15
{
16
//Create the tuple by assigning appropriate names.
17
Tuple<string, string, string> t = Tuple.Create("Amar", "Akbar", "Anthony");
18
19
//Returning the tuple instance
20
return t;
21
}
22
}
23
}
Cached Result
-Examples-
-Loop Example-
Loop #0
Loop #1
Loop #2
Loop #3
Loop #4
-Conditional Example 1-
Variable is equal to 0
-Conditional Example 2-
Variable is equal to 1
-Conditional Example 3-
Value
Variable is greater than 1
-Conditional Example 3-
Value
-Loop Example-
Loop #0
Loop #1
Loop #2
Loop #3
Loop #4
-Conditional Example 1-
Variable is equal to 0
-Conditional Example 2-
Variable is equal to 1
-Conditional Example 3-
Value
Variable is greater than 1
-Conditional Example 3-
Value