Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » General » Downloads
 
Add your own
alternative version

Deep copy of objects in C#

, 18 Jul 2009 CPOL
How to do a deep copy of objects using System.Reflection.
HCloner.zip
HCloner
HCloner
bin
Debug
HCloner.dll
Properties
HClonerTest
bin
Debug
HCloner.dll
HClonerTest.dll
nunit.framework.dll
HClonerTest.csproj.user
Properties
TestObjects
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HAKGERSoft;
using NUnit.Framework;

namespace HAKGERSoft {

    [HClonerTestObject]
    public class AutomaticPropsTestObject {

        public string Str {
            get;
            set;
        }

        public int Integer {
            get;
            set;
        }

        public StringBuilder SB {
            get;
            set;
        }


    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Hakger
Software Developer (Senior)
Poland Poland
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141220.1 | Last Updated 18 Jul 2009
Article Copyright 2009 by Hakger
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid