等效于C#的代码 [英] C# equivalent of the code
问题描述
我有以下代码需要转换为c#.net.
I have the following code which needs to be converted to c# .net .
dim server
set server = CreateObject("DSServerMap.Server")
dim root
set root = server.CreateObject("Server")
转换的第一个语句为
DSServerMap.Server服务器=新的DSServerMap.Server();
我不知道代码是否在vb6或vb.net中
但我似乎无法将第二行转换为C#
我使用的是具有所有功能的dll
谁能帮我这个 .感谢u
the first statement converted was as
DSServerMap.Server server = new DSServerMap.Server();
i Dont if the code is in vb6 or vb.net
but i cant seem to convert the 2 nd line to c#
I using the dll which has all the functionalities
can anyone help me with this . Thank u
推荐答案
尝试这个
object server = null;
server = Interaction.CreateObject("DSServerMap.Server");
object root = null;
root = server.CreateObject("Server");
一些vb-c#转换器
http://www.carlosag.net/tools/codetranslator/ [ http://converter.telerik.com/ [ ^ ]
Some of vb-c# converters
http://www.carlosag.net/tools/codetranslator/[^]
http://converter.telerik.com/[^]
使用以下链接将您的代码从C#转换为Vb,从Vb转换为C#
http://converter.telerik.com/ [ ^ ]
Hi,
use following link to convert your code from C# to Vb and From Vb to C#
http://converter.telerik.com/[^]
请参见下面的链接.可能会对您有帮助.
http://www.developerfusion.com/tools/convert/vb-to-csharp/ [^ ]
http://converter.telerik.com/ [ ^ ]
谢谢,
Viprat
Hi,
Please see the below link. It might be help you.
http://www.developerfusion.com/tools/convert/vb-to-csharp/[^]
http://converter.telerik.com/[^]
Thanks,
Viprat
这篇关于等效于C#的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!