access a data structure ValueArray.Helppp!!!

May 28, 2009 at 1:29 PM
I have to create a ValueArray of interi.La syntax is as follows? public static ValueArray<int> pianoT = new ValueArray<int>(0, 1, 2);
How do I get back the value in position 2?
tk

Coordinator
Jun 2, 2009 at 8:59 PM

Use indices in square brackets, just like a regular C# array or NModel Sequence:  pianoT[2] etc.