我想将此代码从c#转换为ASP.net中的VB代码 [英] I want to convert this code from c# to VB code in ASP.net

查看:67
本文介绍了我想将此代码从c#转换为ASP.net中的VB代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在ASP.net中将此代码从c#转换为vb语言。如果我将其写入vb,这段代码是什么。



在这里输入代码

I want to convert this code from c# to vb language in ASP.net.What is the expression of this code if I will write it to vb.

enter code here

`protected void btnPreview_Click(object sender, EventArgs e)
{
    Session["ImageBytes"] = PhotoUpload.FileBytes;
    ImagePreview.ImageUrl = "~/ImageHandler.ashx";
}`

推荐答案

有很多免费的转换器,很少有:

将C#转换为VB.NET [ ^ ]

将C#转换为VB.NET2 [ ^ ]

代码翻译.NET [ ^ ]

将VB转换为C#或C#转换为VB [ ^ ]

亲自试用!
There are lots of free converters, few are:
Convert C# to VB.NET [^]
Convert C# to VB.NET2[^]
Code Translation for .NET [^]
Convert VB to C# or C# to VB[^]
Try it yourself!


ILSpy可以用作开源桌面合作de converter:

http://ilspy.net/ [ ^ ]。



最好的事情是你不会依赖在任何网站或服务上。该软件有很多用途;这是着名的Reflector的开源替代品:

http://en.wikipedia.org /wiki/.NET_Reflector [ ^ ]。< br $> b $ b





这是如何使用它进行翻译:有一些C#代码,编译它进入任何组装。使用ILSpy从文件(例如.DLL,.EXE ...)加载此程序集,找到您感兴趣的代码。对于输出语言,请选择VB.NET。当您反汇编代码时,它将在VB.NET中显示。从VB.NET获取C#也是一样。



-SA
ILSpy can be used as the open-source desktop code converter:
http://ilspy.net/[^].

The best thing is that you won''t be dependent on any sites or services. This software has a lot more uses; this is an open-source replacement for the famous Reflector:
http://en.wikipedia.org/wiki/.NET_Reflector[^].



This is how to use it for translation: having some C# code, compile it into any assembly. Load this assembly with ILSpy from a file (such as .DLL, .EXE…), locate the code you are interested in. For output language, select VB.NET. When you disassemble the code, it will be shown in VB.NET. Same thing to get C# from VB.NET.

—SA


去这里语言转换器:



点击 [ ^ ]
Go here for a language converter:

Click[^]


这篇关于我想将此代码从c#转换为ASP.net中的VB代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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