mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
23 lines
473 B
C#
23 lines
473 B
C#
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace ET
|
|
{
|
|
public abstract class ProtoObject: Object, ISupportInitialize
|
|
{
|
|
public object Clone()
|
|
{
|
|
byte[] bytes = MongoHelper.Serialize(this);
|
|
return MongoHelper.Deserialize(this.GetType(), bytes, 0, bytes.Length);
|
|
}
|
|
|
|
public virtual void BeginInit()
|
|
{
|
|
}
|
|
|
|
|
|
public virtual void EndInit()
|
|
{
|
|
}
|
|
}
|
|
} |