What?s the difference between the System.Array.CopyTo() and
System.Array.Clone()?
Answer Posted / rajesh
The Clone() method returns a new array (a shallow copy)
object containing all the elements in the original array.
The CopyTo() method copies the elements into another
existing array. Both perform a shallow copy. A shallow
copy means the contents (each array element) contains
references to the same object as the elements in the
original array. A deep copy (which neither of these
methods performs) would create a new instance of each
element's object, resulting in a different, yet identacle
object.
Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Explain metadata in c#.
Expalin the way you implement inheritance by using VB.NET/C#?
Can we instantiate abstract class in c#?
What is instantiating a class?
What is difference between ienumerable and enumerable in c#?
What's the difference between a static method and a non static method c#?
What is the difference between as and is operators in c#?
What are jump statements in c#?
What is ac callback?
Is hashset ordered c#?
What is the difference between “out” and “ref” parameters in c#?
Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards
how to stored and retrive video in Sql server using asp.net c#......?
What is datareader c#?
What are Types of assemblies that can be created in dotnet