- public object Clone()
- {
- BinaryFormatter Formatter = new BinaryFormatter(null, new StreamingContext(StreamingContextStates.Clone));
- MemoryStream stream = new MemoryStream();
- Formatter.Serialize(stream, this);
- stream.Position = 0;
- object clonedObj = Formatter.Deserialize(stream);
- stream.Close();
- return clonedObj;
- }
posted on
2012-07-10 09:10
fenix
阅读(178)
评论()
收藏
举报