动态对象ExpandoObject实现动态函数调用
动态对象ExpandoObject实现动态函数调用 动态对象ExpandoObject实现动态函数调用
C# Code:
dynamic person = new System.Dynamic.ExpandoObject();
person.Name = "www.cscode.net C/S框架网";
person.Age = 25;
person.ShowDescription = new Func<string>(() => person.Name+":"+person.Age);
string ss = person.ShowDescription();