dedex,
you can't pass properteis or indexers to a ref parameter(however you can pass readonly properties),
Code:
void myMethod(ref myArrayList[j])
{
ArrayList ar=new ArrayList();
myArrayList[j]=ar;
}
if you set
myArrayList[j] to a new object(ar) after you come out from the method,compiler can't assign new object(as type of Arraylist) to myArrayList[j] because its refrence is changed to a ArrayList Object,so C# compiler doesn't let this operation,
there is a solution for this explained
here.
_____________
Mehdi.
software student.