亨利.王

2011年6月8日

动态调用接口

摘要: Type type = Type.GetType(configTab["className"].ToString());//类的完整签名 CMS.Common.CDN.Lanxun Type objType = type.GetInterface(typeof(ICDN).FullName);// lanxun.cs 实现的接口 if (objType != null) { cdn = (ICDN)Activator.CreateInstance(type); } cdn.init(configTab); 阅读全文

posted @ 2011-06-08 10:27 亨利.王 阅读(213) 评论(0) 推荐(0) 编辑

导航