elliebot/src/Ellie.Bot.Common/Configs/IConfigSeria.cs
2023-07-15 22:25:21 +12:00

18 lines
No EOL
449 B
C#

namespace Ellie.Common.Configs;
/// <summary>
/// Base interface for available config serializers
/// </summary>
public interface IConfigSeria
{
/// <summary>
/// Serialize the object to string
/// </summary>
public string Serialize<T>(T obj)
where T : notnull;
/// <summary>
/// Deserialize string data into an object of the specified type
/// </summary>
public T Deserialize<T>(string data);
}