Visual Basic .NET数组初始化
示例
Dim array() As Integer = {2, 0, 1, 6} ''Initialize an array of four Integers.
Dim strings() As String = {"this", "is", "an", "array"} ''Initialize an array of four Strings.
Dim floats() As Single = {56.2, 55.633, 1.2, 5.7743, 22.345}
''Initialize an array of five Singles, which are the same as floats in C#.
Dim miscellaneous() as Object = { New Object(), "Hello", New List(of String) }
''Initialize an array of three references to any reference type objects
''and point them to objects of three different types.
热门推荐
10 同学毕业祝福语有趣简短
11 兔年简短祝福语8字
12 老爸的祝福语简短独特
13 新房上梁简短祝福语大全
14 生完孩子祝福语简短
15 猪年祝福语大全简短的
16 20春节祝福语大全简短
17 公司最好的祝福语简短
18 元旦英文祝福语大全简短