How would one do a deep copy in .NET?

Answer Posted / sanjay

I Agree clone() always gives deep copy.

Now I am just diverting from the tpoic. one of the question
asked during interview is : what is the difference b/w
Array.copy() and array.clone(). for me both gives deep copy
the only difference is array.clone() returns a object type
so you have to typecast it.

Please comment.............

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is boxing and unboxing in asp.net?

659


Explain the use of fragment caching.

658


What is asp.net web pages?

523


What is event bubbling?

597


What can you do with asp.net?

507






What are the Types of chaching. How to implement caching

556


Is asp.net mvc front end or backend? : Asp.Net MVC

485


How would you turn off cookies on a page of a website?

500


What is the advantage of using Windows authentication in a Web application?

549


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

557


What is Razor View Engine

601


What are Master Pages in ASP.NET? or What is a Master Page?

605


What are url fragments?

494


Write a code for passing ArrayList in Web API?

1048


Can we have multiple web config files for an asp.net application?

529