我一直在用C#,vb.net很少用
现在想将我做的一个类改成vb.net的,哪位帮我一下
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices; namespace class1
{
[ComVisible(true)]
public interface iClass1
{
string test();
}
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.AutoDual)]
public class class1 : iClass1
{
public string test()
{
return "ok";
}
}
}
现在想将我做的一个类改成vb.net的,哪位帮我一下
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices; namespace class1
{
[ComVisible(true)]
public interface iClass1
{
string test();
}
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.AutoDual)]
public class class1 : iClass1
{
public string test()
{
return "ok";
}
}
}
Imports System.Collections.Generic
Imports System.Text
Imports System.Runtime.InteropServices
Namespace class1
<ComVisible(True)> _
Public Interface iClass1
Function test() As String
End Interface 'iClass1
<ComVisible(True), ClassInterface(ClassInterfaceType.AutoDual)> _
Public Class class1
Inherits iClass1
Public Function test() As String
Return "ok"
End Function 'test
End Class 'class1
End Namespace 'class1
在网页上直接进行变换的工具
http://authors.aspalliance.com/的
http://authors.aspalliance.com/aldotnet/examples/translate.aspx
http://www.kamalpatel.net/的
http://www.kamalpatel.net/ConvertCSharp2VB.aspx
http://www.ragingsmurf.com/的
http://www.ragingsmurf.com/vbcsharpconverter.aspx
可以offline工作的变换工具 http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=4006c1b7-ec75-4ede-a1eb-01dcd7d4d651 http://www.kamalpatel.net/的 http://www.kamalpatel.net/ConvertCSharp2VB.aspx
# 仔细找一下有下载。
-------------------------------------------------------------------[追加] 多谢。。:-) DDL 提供的信息
http://www.tiantian.cn/dotnet/index2.htm
这里也有一个Convert .NET 2.0 cure 提供的信息
SharpDevelop也不错:)
[
SharpDevelop的网址:http://www.sharpdevelop.net/
下载地址:http://www.sharpdevelop.net/OpenSource/SD/Download/
使用方法: 打开想要变换的文件,按菜单Tools --> convert buffer C# to VB.NET
]