ISerializer.cs 395 B

123456789101112131415161718
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Diagnostics.Contracts;
  5. using System.Reflection;
  6. namespace InABox.Serialization
  7. {
  8. public interface ISerializer<TFormat>
  9. {
  10. TFormat Serialize<TType>(TType o); // where TType : BaseObject, new();
  11. TType Deserialize<TType>(TFormat data); // where TType : BaseObject, new();
  12. }
  13. }