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
What is the use of ADO.NET and XML web services?
Explain how to bind the controls(best practice) comboboxes to the data in the dataset?
What is ole data type?
What is a datagridview?
What is ado object model?
What is the difference between sqldatareader and sqldataadapter?
What is data relation?
What are the features of ado.net?
What is the difference between oledb sql server and oledbdotnet provider?
how Sequence to connect and retrieve data from database using dataset?
Explain the difference between data reader and data set?
What is ado.net code?
Is datareader faster than datatable?
Which object needs to be closed?
What are the methods of XML dataset object?