How to identify whether the objects are just reference or just copied? .net Memory Management
- by NLV
Hello
I'm confused to find whether an object is either copied or the reference of the object is held while equating it to some other objects.
Examples
int i =5;
int j = i;
Reference or copy of data?
DataSet ds = dsOtherDataSet.Copy();
Reference or copy of data?
DataView dvTemp = dsTestDataSet.Copy().DefaultView;
What happens here?
Regards
NLV