一句话的问题,C#转VB.net
LinkButton button = c as LinkButton;
这句C#如何转换为vb.net代码,关键是个那个as....
------解决方案--------------------vb不会。。帮顶
------解决方案--------------------//c as LinkButton; TypeCast对它进行转换,不能转就传false
Dim button As LinkButton = TypeCast(c)
------解决方案--------------------Dim button As LinkButton = TryCast(c, LinkButton)
------解决方案--------------------//c as LinkButton; TypeCast对它进行转换,不能转就传false
Dim button As LinkButton = TypeCast(c, LinkButton)
------解决方案--------------------Dim button As LinkButton = TryCast(c, LinkButton) 转换问题
------解决方案--------------------CType
DirectCast
TryCast
都可以