📅  最后修改于: 2022-03-11 14:49:13.079000             🧑  作者: Mango
代码示例3
var trio = new Trio() {Name1 = "John", Name2 = "Tom", Name3 = "Peter"};
foreach (string name in trio)
{
Console.WriteLine(name);
}