博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
具有某接口与是某类型
阅读量:4134 次
发布时间:2019-05-25

本文共 174 字,大约阅读时间需要 1 分钟。

是某类型:

                    if (this.FindName(ControlName).GetType() == typeof(LabelIMG))

                    {
                    }

具有某接口:

                    if (this.FindName(ControlName).GetType().GetInterface("IControl",true) == typeof(IControl))

                    {
                    }

 

转载地址:http://jvpvi.baihongyu.com/

你可能感兴趣的文章
C 语言 学习---回调、时间定时更新程序
查看>>
C 语言 学习---复选框及列表框的使用
查看>>
第十一章 - 直接内存
查看>>
JDBC核心技术 - 上篇
查看>>
一篇搞懂Java反射机制
查看>>
application/x-www-form-urlencoded、multipart/form-data、text/plain
查看>>
Longest Common Prefix -最长公共前缀
查看>>
Letter Combinations of a Phone Number
查看>>
Single Number II --出现一次的数(重)
查看>>
Valid Parentheses --括号匹配
查看>>
Count and Say
查看>>
Palindrome Partitioning --回文切割 深搜(重重)
查看>>
Valid Palindrome 简单的回文判断
查看>>
对话周鸿袆:从程序员创业谈起
查看>>
web.py 0.3 新手指南 - 如何用Gmail发送邮件
查看>>
web.py 0.3 新手指南 - RESTful doctesting using app.request
查看>>
Mysql中下划线问题
查看>>
Xcode 11 报错,提示libstdc++.6 缺失,解决方案
查看>>
idea的安装以及简单使用
查看>>
Windows mysql 安装
查看>>