排名
1
文章数
15030
总访问量
216.3万
粉丝数
30
评论数
120
上测试代码
using System;
public static class Program
{
public static void Main(string[] args)
{
Console.WriteLine("{0}: {1} byte(s) scope:[{2}-{3}]",
typeof(byte).Name.PadLeft(8), sizeof(byte).NumberPad(2),
byte.MinValue.NumberPad...
public class DepthClone<T> {
public virtual T Clone() {
var memory = new MemoryStream();
var formatter = new BinaryFormatter();
formatter.Serialize(memory, this);
memory.Position = 0;
return (T)formatter.Deserialize(memory);
...