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 祝朋友祝福语简短好看
12 跟女生道别祝福语简短
13 女儿升学宴祝福语简短
14 烟草客户新年祝福语简短
15 高兴的结婚祝福语简短
16 新年送顾客祝福语简短
17 简短中秋祝福语朋友结婚
18 美国护士毕业祝福语简短