class Program
{
static void Main(string[] args)
{
//初始化器
Shao s = new Shao { Y="Yo",X="zhu"};
Yo ss = new Yo { Zhu = new Shao { Y = "Yo", X = "zhu" } };
List<Shao> list = new List<Shao>() { new Shao { Y = "Yo", X = "zhu" },
new Shao { Y = "Yo1", X = "zhu1" },
new Shao { Y = "Yo2", X = "zhu2" }
};
Console.ReadKey();
}
}
class Shao
{
public string Y { get; set; }
public string X { get; set; }
}
class Yo
{
public Shao Zhu { get; set; }
}