How to identify whether the objects are just reference or just copied? .net Memory Management
Posted
by NLV
on Stack Overflow
See other posts from Stack Overflow
or by NLV
Published on 2010-06-11T13:02:19Z
Indexed on
2010/06/11
13:13 UTC
Read the original article
Hit count: 234
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
© Stack Overflow or respective owner