ProtoObject.cs 562 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.ComponentModel;
  3. namespace ET
  4. {
  5. public abstract class ProtoObject: Object, ISupportInitialize
  6. {
  7. public object Clone()
  8. {
  9. byte[] bytes = SerializeHelper.Serialize(this);
  10. return SerializeHelper.Deserialize(this.GetType(), bytes, 0, bytes.Length);
  11. }
  12. public virtual void BeginInit()
  13. {
  14. }
  15. public virtual void EndInit()
  16. {
  17. }
  18. public virtual void AfterEndInit()
  19. {
  20. }
  21. }
  22. }