【发布时间】:2011-07-26 17:27:09
【问题描述】:
我有一个班级,假设是学生
属性为
public string sname{get;set;}
public int sid{get;set;}
public studentprofile sprofile{get;set;}
其中学生个人资料是另一个班级,其中一些 其他属性。
我想做学生对象的深拷贝。
如何做到这一点。
【问题讨论】:
我有一个班级,假设是学生
属性为
public string sname{get;set;}
public int sid{get;set;}
public studentprofile sprofile{get;set;}
其中学生个人资料是另一个班级,其中一些 其他属性。
我想做学生对象的深拷贝。
如何做到这一点。
【问题讨论】:
我认为这已经得到了回答。看看这个解决方案:How do you do a deep copy of an object in .NET (C# specifically)?
【讨论】: