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

Answer Posted / chauhan rakesh botad

System.Array.copyto() will perform a deep copy of array
while system.array.Clone() will perform shalow copy of the
array.Shalow copy will simply copy the elements of the array
where as an Deep copy will copy the elements as well as any
referenced elements present in the array.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define mutex in C#?

812


Is enum a value type c#?

791


Can the accessibility of a type member be greater than the accessibility of its containing type?

735


What is the benefit of delegate in c#?

665


What are the different types of comments in c#?

670


Are c# strings null terminated?

726


Explain jagged arrays in c#?

763


How C# 4.0 supports dynamic programming language?

767


What is int tryparse in c#?

687


What is use of private class in c#?

736


Structs are not reference types. Can structs have constructors?

676


What is the difference between console and windows application?

667


What is literal in c#?

651


What is ispostback c#?

665


Can scriptable objects have methods?

678