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;
        }
}

 

posted on 2019-04-17 23:53  红磨坊后的白桦树  阅读(168)  评论(0编辑  收藏  举报