动态使用字符串创建变量

 Dim pCmd As ICommand
 Dim ctlType As Type = Type.GetType(pCls)
 If Not ctlType Is Nothing Then
  pCmd = CType(System.Activator.CreateInstance(ctlType), ICommand)
 end if

posted on 2006-06-23 13:49 简单就是美 阅读(52) 评论(0)  编辑  收藏 所属分类: DotNet开发

导航

统计

常用链接

随笔分类(95)

随笔档案(91)

新闻分类(6)

新闻档案(15)

积分与排名

最新评论

阅读排行榜