【发布时间】:2016-10-16 09:06:57
【问题描述】:
刚刚重新开始编程,刚接触类,我正在尝试让二维数组在类中工作。
我需要一个函数来传递函数将返回的类中两个二维数组的大小 (x,y)。
这可能吗,如果可以,我该如何调暗 ReturnVar
这当然不是工作代码,只是显示我所追求的框架。
Public Class TestClass
Public Array1(,) As Integer
Public Array2(,) As Integer
End Class
Function MyFunc1(ByVal x as Integer, y as Integer) as TestClass
'x and y will define the size of the two arrays in the TestClass
Dim ReturnVar ??? As New TestClass
.
do some code
.
Return ReturnVar
End Function
【问题讨论】:
-
您是在学习类、二维数组还是两者兼而有之?
标签: .net arrays vb.net class multidimensional-array