16 lines
341 B
C#
16 lines
341 B
C#
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using ProtoBuf;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
public class ProtoObject: Object
|
||
|
{
|
||
|
public object Clone()
|
||
|
{
|
||
|
byte[] bytes = ProtobufHelper.ToBytes(this);
|
||
|
return ProtobufHelper.FromBytes(this.GetType(), bytes, 0, bytes.Length);
|
||
|
}
|
||
|
}
|
||
|
}
|