是某类型:
if (this.FindName(ControlName).GetType() == typeof(LabelIMG))
{ }具有某接口:
if (this.FindName(ControlName).GetType().GetInterface("IControl",true) == typeof(IControl))
{ }
本文共 174 字,大约阅读时间需要 1 分钟。
是某类型:
if (this.FindName(ControlName).GetType() == typeof(LabelIMG))
{ }具有某接口:
if (this.FindName(ControlName).GetType().GetInterface("IControl",true) == typeof(IControl))
{ }
转载地址:http://jvpvi.baihongyu.com/