VB.NET
程
序结构
C #
Main !"
#!" !"$%&'(%
'See if an argument was passedfrom the command
line
)&*"$+(""$,
"&!*!"%-%.".%/%
'"
'"
'"
!"0
"1
!1
!!!Main!"231
!""$%4%0
// See if an argument was passed from the
command line
if (args.Length == 1)
name = args[0];
Console.WriteLine("Hello, " + name + "!");
}
}
}
V B . N E T
" 注 释
C #
' Single line only
REMSingle line only
''' <summary>XML comments</summary>
// Single line
/* Multiple
line */
/// <summary>XML comments on single
line</summary>
/** <summary>XML comments on multiple
lines</summary> */
V B . N E T
# ( 数据类型
C #
评论1