How do you implement Cloning in .NET?.NET provides
an option to clone any object you use in your program. This is possible
if your objects type implements the ICloneable interface which contains
the clone method.
For example, arrays have implemented ICloneable interface and therefore they include clone method as their member. Here is an example showing how an array can be cloned: public class
sampleClass { Output of this code will be: Actual Array:
10 20 30 40 50
|