0

I have a class lets say students

with properties as

public string sname{get;set;}
public int sid{get;set;}
public studentprofile sprofile{get;set;}

where student profile is another class with some other properties .

I want to do deep copy of the students object.

How to do that.

ankur
  • 4,565
  • 14
  • 64
  • 100
  • possible duplicate of [How do you do a deep copy an object in .Net (C# specifically)?](http://stackoverflow.com/questions/129389/how-do-you-do-a-deep-copy-an-object-in-net-c-specifically) – Andrew Orsich Mar 31 '11 at 09:02

1 Answers1

1

I think this is already answered. Have a look at this solution : How do you do a deep copy of an object in .NET (C# specifically)?

Community
  • 1
  • 1
Abdel Raoof Olakara
  • 19,223
  • 11
  • 88
  • 133