public void ToSubClassTest() { var d = new Data2 { Name = "huangxd" }; Console.WriteLine(d.To <Data1>().Name); }