关于锯齿状阵列。

编程入门 行业动态 更新时间:2024-10-18 06:08:34
本文介绍了关于锯齿状阵列。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道为什么(Console.WriteLine(c(1)(1)))打印出零? 并解释我 c(1)= System.Array.CreateInstance(GetType(System.Int32),10 )?

I'd wonder why (Console.WriteLine(c(1)(1))) printed out Zero? And explain me what is role of c(1) = System.Array.CreateInstance(GetType(System.Int32), 10)?

Imports System Imports System.Data Imports System.Collections public class MainClass Shared Sub Main() Dim c()() As Integer = {New Integer() {1, 2}, New Integer() {1, 2, 3}} c(1) = New Integer() {4, 5} Console.WriteLine(c(1)(1)) c(1) = System.Array.CreateInstance(GetType(System.Int32), 10) Console.WriteLine(c(1)(1)) Dim d() As Integer = {6, 7} c(1) = d Console.WriteLine(c(1)(1)) End Sub End Class

推荐答案

文档会轻轻提供您需要的所有答案:Array.CreateInstance方法(类型,Int32) [ ^ ]。 All the answers you need are gently provided by the documentation: Array.CreateInstance Method (Type, Int32)[^].

更多推荐

关于锯齿状阵列。

本文发布于:2023-11-06 14:04:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1563893.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:锯齿状   阵列

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!