I referring to MS website but could not get much help. Can guide me if some one has a sample strategy that utilizes Lists and structures.
using System.Collections;
privateint barNo = 1;
// User defined Structure to store point
publicstruct Reclh { publicdouble l; publicdouble h;}
// Arraylist by name "Rectangles" to store above structure
public ArrayList Rectangles = new ArrayList();
protectedoverridevoid OnBarUpdate()
{ Reclh Recoor; int mycon =0;
while ( mycon < 5)
{ Recoor.l=mycon; Recoor.h=mycon+1; Print(mycon);
Rectangles.Add(Recoor); // it error comes here
++mycon;
}
}
As always any comment is highly appreciated.
Comment