namespace SabreTools.Serialization.Interfaces { /// /// Defines how to serialize to and from strings /// public interface IStringSerializer { /// /// Deserialize a string into /// /// Type of object to deserialize to /// String to deserialize from /// Filled object on success, null on error T? Deserialize(string? str); /// /// Serialize a into a string /// /// Type of object to serialize from /// Data to serialize /// Filled string on successful serialization, null otherwise string? Serialize(T? obj); } }