using System.Dynamic; ...... dynamic dy = new ExpandoObject(); dy.Name = "张三"; dy.Age = 12; 转载于:https://www.cnblogs.com/devbar/archive/2012/01/04/2312149.html