HH2000
March 5th, 2003, 02:52 PM
Im not sure how things work in C# and would like some clarification.
Say i have a class with some functions inside it, I have one function call another function and declare a new dataTable in the inner most function. I then add that datatable to a global dataset and the function finishes. Now what seems to happen is the datatable is still there even though it has gone out of scope?
another question
Are objects passed into a function passed by reference by default? or does it create a new copy of the object.
thanks
in
advance.
Regards
HH
Say i have a class with some functions inside it, I have one function call another function and declare a new dataTable in the inner most function. I then add that datatable to a global dataset and the function finishes. Now what seems to happen is the datatable is still there even though it has gone out of scope?
another question
Are objects passed into a function passed by reference by default? or does it create a new copy of the object.
thanks
in
advance.
Regards
HH