Reputation: 1814
I have the following vb.net line:
Dim applesAs Object() = New Object([end] - startIndex - 1) {}
and Developer Fusion's Converter converts it to this c# line:
object[] apples= new object[end - startIndex - 1];
The c# code seems to create an array of objects called apples, however I cannot find what the constructor for Object in vb is doing. Is it also creating an array? Am I wrong about what the c# line seems to be doing?
Upvotes: 0
Views: 523
Reputation: 20769
Both the vb.net and c# code are creating an object array called apples.
[]
to indicate an array ()
to indicate an
arrayThe parameters set the size of the array
new Object(5) 'vb.net
new object[6] //c#
Upvotes: 3