a function, whose parameter is a ref to a collection of class I
private void func(List<Ii){
for(int n=0;n<MAXVALUE; ++n){
for(int m=0;m<MAXVALUE; ++m){
Dosomething();
}
i[n].value=5; [******]Eror: can't modify the value of
System.Collecti ons.Generic.Lis t<program.Form1 .I>.this[int] because it
is not a variable[/******]
}
Thanks
private void func(List<Ii){
for(int n=0;n<MAXVALUE; ++n){
for(int m=0;m<MAXVALUE; ++m){
Dosomething();
}
i[n].value=5; [******]Eror: can't modify the value of
System.Collecti ons.Generic.Lis t<program.Form1 .I>.this[int] because it
is not a variable[/******]
}
Thanks
Comment