Implement prototype pattern in .net, DOT NET Programming

How do you implement prototype pattern in .NET?

The Cloning is achieved by using the ICloneable of the System namespace. It has a "Clone" method that actually returns the reference of the similar  copy. The Clone method allows a Shallow copy and not a deep copy. In the Shallow copy if you made changes to the cloned object it actually changes on the main object  . So how is deep copy achieved, by using the "ISerializable" interface? So what do you do is the first serialize the object then deserialize back to a complete new copy. Any changes to this new copy do not reflect on the original copy of the object, this is known as Deep copy.

Posted Date: 9/22/2012 6:06:18 AM | Location : United States







Related Discussions:- Implement prototype pattern in .net, Assignment Help, Ask Question on Implement prototype pattern in .net, Get Answer, Expert's Help, Implement prototype pattern in .net Discussions

Write discussion on Implement prototype pattern in .net
Your posts are moderated
Related Questions
Among the items that are related to the implementation of an application for automation of processes, are shown as follows: a) The online patient registry through which patients

State the advantages of XML schemas over DTD. Microsoft developed a language called as the XML Schema Definition (XSD) to explain the schema to an XML document. The following a

What are tuples? Tuple is a fixed-size collection that can have elements of either similar or different data types. Same to arrays, a user must have to specify the size of a tu

We need Long term Kentico developer needed I want a solid Kentico developer that I can rely on to handle overflow work. Usually this will include about 5 hours of work each week

Web Service based application: Aims and Objectives Classics Online is a Web-based book and music retailer specialising in pre-1980s hardback

Need code for Windows 8 and Windows Phone 8 that will http post images to a php file on web server. Project Description: I am working on two projects on both Windows 8/RT and

I want C# routines for website back end Project Description: We want some routines written in C# (.NET) to: * Parse some RESTful APIs to transform and push data to RabbitM

can we use sql data base with visual studio

What are benefits and Limitation of using Viewstate for state management The benefits of using Viewstate are as follows:- 1)    There is no server resources required because

What is ReaderWriter Locks? You may want to lock the resource only whenever data is being written and permit multiple clients to parallel read data when data is not being updat