class Program { static void Main(string[] args) { var data = Unite(); var name = data.GetType().GetProperty("name").GetValue(data);//李四 } static public object Unite() { var name = "李四"; var age = "11"; var data = new { name = name, age = age }; return data; } }