Esempio n. 1
0
        private static MyTwoValues GetTheValues()
        {
            MyTwoValues myTwoValues = new MyTwoValues();

            myTwoValues.MyInt    = 58;
            myTwoValues.MyString = "Håkan";
            return(myTwoValues);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            MyTwoValues values = GetTheValues();

            Console.WriteLine($"{values.MyInt} {values.MyString}");

            //int Age = 10;
            //string Name = string.Empty;
            (int Age, string Name) = GetValues2();
            Console.WriteLine($"{Age} {Name}");
        }