2024-04-16 18:29:40 +00:00
|
|
|
namespace LootDumpProcessor.Serializers.Yaml;
|
2023-08-12 19:08:38 +01:00
|
|
|
|
|
|
|
public static class YamlSerializerFactory
|
|
|
|
{
|
|
|
|
private static IYamlSerializer? _instance;
|
|
|
|
|
|
|
|
public static IYamlSerializer GetInstance()
|
|
|
|
{
|
|
|
|
if (_instance == null)
|
|
|
|
{
|
|
|
|
_instance = new YamlDotNetYamlSerializer();
|
|
|
|
}
|
|
|
|
|
|
|
|
return _instance;
|
|
|
|
}
|
|
|
|
}
|