namespace CryptoExchange.Net.Interfaces { /// /// Serializer interface /// public interface IMessageSerializer { } /// /// Serialize to byte array /// public interface IByteMessageSerializer: IMessageSerializer { /// /// Serialize an object to a string /// /// /// byte[] Serialize(T message); } /// /// Serialize to string /// public interface IStringMessageSerializer: IMessageSerializer { /// /// Serialize an object to a string /// /// /// string Serialize(T message); } }