http://www.harding.edu/USER/fmccown/WWW/vbnet_csharp_comparison.html
1.VB.NET => C#
[推荐]http://authors.aspalliance.com/aldotnet/examples/translate.aspx
http://www.kamalpatel.net/ConvertCSharp2VB.aspx
http://www.ragingsmurf.com/vbcsharpconverter.aspx
http://w1.311.telia.com/~u31115556/desc/programs.htm
http://expert.csdn.net/Expert/topic/1645/1645967.xml
1)VB.net 中类、枚举默认不是Public 的,转换的时候可能有问题。
2)事件触发代码不一样。比如如下代码:
C#如下写:
protected virtual void OnClick(EventArgs e)
{
if (Click != null)
{
Click(this, e);
}
}
VB.net 如下写:
Protected Overridable Sub OnClick(e As EventArgs)
RaiseEvent Click(Me, e)
End Sub
2.C# => VB.NET