Create Tuple object - CSharp Language Basics

CSharp examples for Language Basics:Tuple

Description

Create Tuple object


using static System.Console;
using System;
using System.Collections.Generic;

class Program
{
    static void Main(string[] args)
    {

        var thing1 = ("Neville", 4);
        WriteLine($"{thing1.Item1} has {thing1.Item2} children.");
    }
}

Related Tutorials