【文件属性】:
文件名称:vb.net和c#语法对比
文件大小:70KB
文件格式:XLS
更新时间:2011-09-23 05:01:30
vb.net C#
详细的对比介绍了两者直接的区别
分多个子类进行详细介绍
VB.NET C#
Imports System using System;
Namespace Hello namespace Hello {
Class HelloWorld public class HelloWorld {
Overloads Shared Sub Main(ByVal args() As String) public static void Main(string[] args) {
Dim name As String = "VB.NET" string name = "C#";
'See if an argument was passed from the command line // See if an argument was passed from the command line
If args.Length = 1 Then name = args(0) if (args.Length == 1) name = args[0];
Console.WriteLine("Hello, " & name & "!") Console.WriteLine("Hello, " + name + "!");
End Sub }
End Class }
End Namespace }