private static MyTwoValues GetTheValues() { MyTwoValues myTwoValues = new MyTwoValues(); myTwoValues.MyInt = 58; myTwoValues.MyString = "Håkan"; return(myTwoValues); }
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}"); }