从C#转换为VB [英] Convert from C# into VB

查看:60
本文介绍了从C#转换为VB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人可以将C#转换为VB这行吗:


if(c是System.Web.UI.HtmlControls.HtmlForm)

解决方案



这里是Vb代码。

如果TypeOf c是System.Web.UI.HtmlControls.HtmlForm那么


EndIf


Thanx。

" ;约翰史密斯 <乔******** @ microsoft.com>在消息中写道

新闻:Py ******************** @ news.siol.net ...


有人可以将C#转换为VB这行:

if(c是System.Web.UI.HtmlControls.HtmlForm)


为了将来参考,您可以转到:
http://www.developerfusion.co.uk/uti...sharptovb.aspx


并键入:

if(c是System.Web.UI.HtmlControls.HtmlForm)

{

}


- -
http://www.openmymind.net/


" John Smith" <乔******** @ microsoft.com>在消息中写道

新闻:Py ******************** @ news.siol.net ...


有人可以将C#转换为VB这行:

if(c是System.Web.UI.HtmlControls.HtmlForm)


Poornimab已经给你答案了,但是下次你需要将
从C#翻译成VB.NET时,你可能想节省一些时间

并使用这个漂亮的在线翻译:

http://www.carlosag.net/Tools/CodeTr...r/default.aspx

Juan T. Llibre,asp .net MVP

aspnetfaq.com: http://www.aspnetfaq。 com /

asp.net faq: http: //asp.net.do/faq/

foros de asp.net,en espa?ol: http://asp.net.do/foros/

====== =============================

" John Smith" <乔******** @ microsoft.com>在消息中写道

新闻:Py ******************** @ news.siol.net ...


有人可以将C#转换为VB这行:

if(c是System.Web.UI.HtmlControls.HtmlForm)



Can someone convert from C# into VB this line for me:

if (c is System.Web.UI.HtmlControls.HtmlForm)

解决方案

Hi,
Here''s the Vb code.
If TypeOf c Is System.Web.UI.HtmlControls.HtmlForm Then

EndIf

Thanx.
"John Smith" <jo********@microsoft.com> wrote in message
news:Py********************@news.siol.net...


Can someone convert from C# into VB this line for me:

if (c is System.Web.UI.HtmlControls.HtmlForm)



For future reference, you can goto:
http://www.developerfusion.co.uk/uti...sharptovb.aspx

and type in:
if (c is System.Web.UI.HtmlControls.HtmlForm)
{
}

--
http://www.openmymind.net/

"John Smith" <jo********@microsoft.com> wrote in message
news:Py********************@news.siol.net...


Can someone convert from C# into VB this line for me:

if (c is System.Web.UI.HtmlControls.HtmlForm)



Poornimab already gave you the answer, but the next time you need to
translate from C# to VB.NET, you might want to save yourself some time
and use this nifty online translator :

http://www.carlosag.net/Tools/CodeTr...r/default.aspx

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
===================================
"John Smith" <jo********@microsoft.com> wrote in message
news:Py********************@news.siol.net...


Can someone convert from C# into VB this line for me:

if (c is System.Web.UI.HtmlControls.HtmlForm)



这篇关于从C#转换为VB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆