I have a vb6 object that I am referencing in c# i.e. Process, that has a collection of operations.
I have the method
public double GetWidth(Process process, String operationName)
{
Operation operation=process.GetOperation(operationName);
return operation.GetValue("Width");
}
Do I need to set operation to null before exiting the function? I don't want to dispose of process or and objects that it contains but i am not sure if the operation instance will cause when I eventually need to dispose of process.
On a side note how do I dispose of a com object if I need to?