using YamlDotNet.Serialization; namespace LootDumpProcessor.Serializers.Yaml; public class YamlDotNetYamlSerializer : IYamlSerializer { private static readonly IDeserializer yamlDeserializer = new DeserializerBuilder().Build(); private static readonly YamlDotNet.Serialization.ISerializer yamlSerializer = new SerializerBuilder().Build(); public string Serialize(T obj) { return yamlSerializer.Serialize(obj); } public T Deserialize(string obj) { return yamlDeserializer.Deserialize(obj); } }