Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a data control clerk?

979


What does ole stand for in excel?

1062


Explain how to bind the controls(best practice) comboboxes to the data in the dataset?

959


What is the difference in record set and dataset?

974


What is ado.net components?

898


What are the main differences between classic ado and ado.net?

968


What are the advantages of using datalist?

960


What is disconnected scenario in entity framework?

1051


How do you find the count of records in a dataset?

909


How do you update a dataset in ado.net?

967


How to pass values into a datatable?

1055


What is difference between ado.net and asp net?

970


Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?

1083


What is different between sqlcommand object and command behavior object?

983


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

906