任何转换c#代码到vb.net为我提前thanx [英] any convert c# code to vb.net for me thanx in advance
本文介绍了任何转换c#代码到vb.net为我提前thanx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码是
using System.Net;
using System.IO;
using System.Web;
string username = "";
string password = "";
string no = ;
string from = "";
string msg = ""
; send(username, password, no, from, msg);
public void send(string
username, string password,
string no , string from,
string message )
{
System.Net.HttpWebRequest myReq = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("http://lifetimesms.com/api.php?username="
+username+ "&password=" +password+ "&to="
+no+ "&from=" +from+ "&message="+message);
System.Net.HttpWebResponse myResp = (System.Net.HttpWebResponse)myReq.GET / POSTResponse();
System.IO.StreamReader respStreamReader = new
System.IO.StreamReader(myResp.GET / POSTResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}
推荐答案
您可以使用此在线转换器转换您的代码:
http://converter.telerik.com/ [ ^ ]
You can use this online converter to convert your code:
http://converter.telerik.com/[^]
有免费的在线代码转换器可以为您执行此操作。
搜索将C#转换为VB.NET并选择一个。
DeveloperFusion很受欢迎
There are free on-line code converters that will do this for you.
Search for "Convert C# to VB.NET" and choose one.
DeveloperFusion is popular
除了Solution 1& 2:在线转换器有一些限制。您还可以使用开源ILSpy对整个程序集进行全面转换。
请参阅我过去的答案以及转换说明:代码解释,C#到VB.NET [ ^ ]。
-SA
In addition to Solution 1 & 2: The online converter have some limitations. You also can have comprehensive conversion of the whole assembly using open-source ILSpy.
Please see my past answers complete with the instructions on conversion: Code Interpretation, C# to VB.NET[^].
—SA
这篇关于任何转换c#代码到vb.net为我提前thanx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文