·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> 网站建设开发 >> ASP.NET网站开发 >> 使用用dynamic添加外部DLL引用
var dogType = System.Reflection.Assembly.Load("bigs").GetType("bigs.big");//注意:命名空间加上类名! dynamic dog = Activator.CreateInstance(dogType); dog.Speak(); dynamic expando = new System.Dynamic.ExpandoObject(); expando.Name = "chenxiaofeng"; expando.Speak = new Action(() => Console.WriteLine("My name is {0}", expando.Name)); expando.Speak();