What's the difference between Dataset.clone and Dataset.copy?
Answer Posted / muzism
Shallow copy is when the address of the object is assigned
to another of the same type. If a change to one is made,
the change is apparent in both instances.
Deep copy is when the entire contents of the object are
copied from one object into another. Hence, there are two
autonomous instances of the object. If a change to one is
made, the change is confined to that object.
Dataset.clone() duplicates (only) the structure of an
dataset, with no data being duplicated.
Dataset.copy() performs a deep copy of the dataset
| Is This Answer Correct ? | 19 Yes | 8 No |
Post New Answer View All Answers
What is a data control clerk?
What does ole stand for in excel?
Explain how to bind the controls(best practice) comboboxes to the data in the dataset?
What is the difference in record set and dataset?
What is ado.net components?
What are the main differences between classic ado and ado.net?
What are the advantages of using datalist?
What is disconnected scenario in entity framework?
How do you find the count of records in a dataset?
How do you update a dataset in ado.net?
How to pass values into a datatable?
What is difference between ado.net and asp net?
Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?
What is different between sqlcommand object and command behavior object?
What is serialization and de-serialization in .net? How can we serialize the dataset object?