Converting Vba type to C #

This can probably be done very easily, but I have the following statement in VBA:

Type testType
    integerArray(5 To 100) As Double
End Type

      

How can I accomplish the same thing in C #?

@Edit 14:16 08-07-2015

In my opinion, this is not the same as the mentioned question. It is a question of how to convert the Type operator with an array inside. The above question only deals with the array with its starting index.

0


source to share


1 answer


Actually C # doesn't support such array types based on any other starting index and then zero.

However, you can do.

double[] myArray = new double[96];

      



Alternatively, you can create a dictionary with indexes as keys and actual value:

var myDict = new Dictionary<int, double>();

      

+1


source







All Articles