What's the difference between Dataset.clone and Dataset.copy?

Answer Posted / dasaradhi

Clone -- Creates another reference (Pointer) to the same
location.

Copy -- Creates two different references to two different
Address Spaces

DataSet dsOriginal = new DataSet();
DataSet dsClone = dsOriginal.Clone();
DataSet dsCopy = dsCopy.Copy();

What does this mean?
Well, here is the answer.
If you make changes to dsClone, they will reflect in
dsOriginal also. where as you do changes to dsCopy, the
changes will not reflect in dsOriginal.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is execute scalar in ado.net?

494


What is sqldatareader?

487


What are disadvantages of microsoft-provided data provider classes in ado.net?

496


What are all the different methods under sqlcommand?

516


Explain the architecture of ado.net?

535






What is the usage of the dataset object in ado.net?

481


How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?

577


What is serialization and de-serialization in .net? How can we serialize the dataset object?

511


What are the advantages of oledb compared with other classes?

2320


Does ado.net use odbc?

518


What is the difference between Response.Expires and Reponse.ExpiresAbsolute?

534


What are the advantage of ado.net?

515


What is Serialization in .NET? what are the types of Serialization?

544


What is difference between Dataview and Datatable?

527


How can we serialize the dataset object?

556