Object.cs 381 B

1234567891011121314151617181920212223242526272829
  1. namespace ETHotfix
  2. {
  3. public interface IDisposable
  4. {
  5. void Dispose();
  6. }
  7. public interface ISupportInitialize
  8. {
  9. void BeginInit();
  10. void EndInit();
  11. }
  12. public abstract class Object: ISupportInitialize
  13. {
  14. public virtual void BeginInit()
  15. {
  16. }
  17. public virtual void EndInit()
  18. {
  19. }
  20. public override string ToString()
  21. {
  22. return JsonHelper.ToJson(this);
  23. }
  24. }
  25. }