This .NET interview questions will show difference between shallow copying and deep copying with example.
Shallow copying means just copy the structure whereas deep copying means copy structure and data both.
With an example: -
In .NET Datatable class have 2 methods: -
- Clone – Which will create and return new instance of datatable whose structure will match existing table’s structure. Structure means, Columns, type of columns, sequence of columns etc.
- Copy – Which will also copy the data inside current table.
For technical trainings on various topics like WCF, MVC, Business Intelligence, Design Patterns, WPF, TFS and Basic fundamentals feel free to contact SukeshMarla@Gmail.com or visit www.sukesh-marla.com