I have a simple statement to print array elements, it always omit the 1st element. Do you have any suggestions?
The whole test code is the following:
protectedoverridevoid OnBarUpdate()
{
int [] timeInterested = newint [] {1,2,3,5};
foreach(int i in timeInterested)
{
Print ("timeInterested " +timeInterested[i].ToString());
}
}
The output is always 2,3,5. 1 is missing.
Comment