c#:如何处理对对象进行深度拷贝

 /// <summary>
/// 对对象进行深度拷贝
/// </summary>
/// <param name="obj"></param>
/// <returns></returns>
private object Clone(object obj)
{
MemoryStream memory_stream = new MemoryStream();
BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize(memory_stream,obj);
memory_stream.Position = ; return formatter.Deserialize(memory_stream);
}
上一篇:虚拟机无法启动


下一篇:zabbix监控安装及实现对tomcat服务器监控