Hi,
I'm a new C# programmer trying to figure out how to implement arrays of instances for classes I generate... I tried something that barfed like this:
bar [] foo;
public void initializefoo(){
for(int i=0; i<5; i++)
{
foo = new bar();
}
}
I understand I might have to implement the System.Array class... does anyone have an example of what I need to do?
I'm a new C# programmer trying to figure out how to implement arrays of instances for classes I generate... I tried something that barfed like this:
bar [] foo;
public void initializefoo(){
for(int i=0; i<5; i++)
{
foo = new bar();
}
}
I understand I might have to implement the System.Array class... does anyone have an example of what I need to do?