, # vb.net. #, Foo: Bar: Boz: Object, :
vb.net :
vb.net , , . , # , , , , , , ; , , , , ( , ).
, , vb.net, # , . vb, , , . , , MyArray[] , :
' ConstructorParam is defined and set in base class ParamInitClass(Of Integer)
ReadOnly MyArray(ConstructorParam) As Integer
...
Sub New(ArraySize As Integer)
MyBase.New(ArraySize)
End Sub
,
ReadOnly MyArray() As Integer
Sub New(ArraySize As Integer)
Redim MyArray(ArraySize)
End Sub
Note that in C # the only way to do such things is through variables threadstatic, but at best, such methods would be pretty dodgy.
source
share