var trio = new Trio() {Name1 = "John", Name2 = "Tom", Name3 = "Peter"}; foreach (string name in trio) { Console.WriteLine(name); }