Re: Framework 3.5 Copy POCO?

"Corneliu I. Tusnea" <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <[email protected]>
Implement ICloneable and return this.MemberwiseClose();




-----Original Message-----
From: Discussion of advanced .NET topics. [mailto:[email protected]] On Behalf Of SteveC
Sent: Tuesday, 4 November 2008 11:05 PM
To: [email protected]
Subject: [ADVANCED-DOTNET] Framework 3.5 Copy POCO?

With .NET Framework 3.5, what is the best/fastest/slickest way to make a
(non-reference) copy of the object of a Plain Old C Sharp Object?



//My Sample

public class MyClass

{

    private string _mystring;



    public string MyString

    {

        Get { return _mystring }

        Set { _mystring = value}

    }



    public int IntWithNoPriv { get; set; }



}





Thanks.


===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives

===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.