What is the difference b/w Arry.copy() and array.clone()
method?

Answer Posted / chauhan rakesh botad

Array.Copy() copies all contents of original array to
another array by specied index of original array while Clone
creates a shallow copy. Array.Copy() copies Data as well as
structure while Clone copies data only.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of a namespace?

660


Why do we use classes?

663


Which framework is best for desktop application?

709


How to use nullable types in .net?

761


How Global.asax is used ?

817


What is new method in c#?

687


Why hashtable is thread safe in c#?

711


What is a custom attribute?

657


What is a hash table in c#?

712


What is difference between class and abstract class in c#?

652


What is managed or unmanaged code?

845


What is an interface class? Give one example of it

669


What is a predicate in c#?

677


What are extensions methods in c#?

644


What is difference between an reference type and value type in C#?

799