W
windsurfing_stew
Consider the following code:
public void MyMethod(Object myObject)
{
myObject = anotherObject;
}
After this method is called myObject will still contain a reference to
it's original object rather than anotherObject. Eg,
MyMethod(myObject);
MessageBox.Show(myObject.GetType.ToString());
My question is, how can I change the parameter descriptions on MyMethod
so that myObject references anotherObject after it is called?
Hope you can assist,
Stewart
public void MyMethod(Object myObject)
{
myObject = anotherObject;
}
After this method is called myObject will still contain a reference to
it's original object rather than anotherObject. Eg,
MyMethod(myObject);
MessageBox.Show(myObject.GetType.ToString());
My question is, how can I change the parameter descriptions on MyMethod
so that myObject references anotherObject after it is called?
Hope you can assist,
Stewart