namespace SabreTools.Serialization.Interfaces
{
///
/// Defines how to serialize to and from files
///
public interface IFileSerializer
{
///
/// Deserialize a file into
///
/// Type of object to deserialize to
/// Path to deserialize from
/// Filled object on success, null on error
T? Deserialize(string? path);
///
/// Serialize a into a file
///
/// Type of object to serialize from
/// Data to serialize
/// Path to the file to serialize to
/// True on successful serialization, false otherwise
bool Serialize(T? obj, string? path);
}
}