IWriter.cs 673 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.Collections;
  2. namespace XGame.Framework.Serialization
  3. {
  4. public interface IWriter
  5. {
  6. void Write(bool value);
  7. void Write(sbyte value);
  8. void Write(byte value);
  9. void Write(short value);
  10. void Write(ushort value);
  11. void Write(int value);
  12. void Write(uint value);
  13. void Write(long value);
  14. void Write(ulong value);
  15. void Write(float value);
  16. void Write(double value);
  17. void Write(char value);
  18. void Write(string value);
  19. void Write(byte[] value);
  20. void Write(ISerializable data);
  21. void Write(IEnumerable enumerable);
  22. }
  23. }