.net 实现深拷贝的方法
2008-10-11 15:20
204 查看
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace WindowsApplication3
{
public class MyType:ICloneable
{
ArrayList set;
public MyType(ArrayList set)
{
this.set = (ArrayList) set.Clone();
}
public object Clone()
{
return new ArrayList(set);
}
}
}
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace WindowsApplication3
{
public class MyType:ICloneable
{
ArrayList set;
public MyType(ArrayList set)
{
this.set = (ArrayList) set.Clone();
}
public object Clone()
{
return new ArrayList(set);
}
}
}
相关文章推荐
- .net压缩功能实现方法
- 【经验总结】C#常用线程同“.NET研究”步方法应用场景和实现原理
- Python实现拷贝多个文件到同一目录的方法
- .net中实现RSS方法
- 设为首页 加入收藏 联系我们 .net实现方法
- Android编程实现将压缩数据库文件拷贝到安装目录的方法
- 【转】ArrayList深拷贝的一种实现方法
- 在SQL Server中使用CLR调用.NET方法实现思路
- 用.net 编码实现朗读文本的方法
- 在WIN95中实现文件拷贝的编程方法
- .Net实现Windows服务安装完成后自动启动的两种方法
- C#拷贝文件简单实现方法
- .NET 实现Eval(文字列表达式计算)的3种实现方法。
- C#中序列化实现深拷贝,实现DataGridView初始化刷新的方法
- Java实现文件拷贝的4种方法.
- 深浅拷贝,原生和JQuery方法实现
- .Net AOP (四)EnterpriseLibary 实现方法
- Java实现文件拷贝的方法
- .net 拷贝方法
- .net下不用AJAX实现前台JS调用后台C#方法