diff --git a/YamlDotNet/Serialization/Deserializer.cs b/YamlDotNet/Serialization/Deserializer.cs index 52c216fe4..adde221a6 100644 --- a/YamlDotNet/Serialization/Deserializer.cs +++ b/YamlDotNet/Serialization/Deserializer.cs @@ -133,7 +133,7 @@ public void RegisterTagMapping(string tag, Type type) public void RegisterTypeConverter(IYamlTypeConverter typeConverter) { - converters.Add(typeConverter); + converters.Insert(0, typeConverter); } public T Deserialize(TextReader input) diff --git a/YamlDotNet/Serialization/Serializer.cs b/YamlDotNet/Serialization/Serializer.cs index 9ff36a0c3..e00d19f42 100644 --- a/YamlDotNet/Serialization/Serializer.cs +++ b/YamlDotNet/Serialization/Serializer.cs @@ -75,7 +75,7 @@ private bool IsOptionSet(SerializationOptions option) /// public void RegisterTypeConverter(IYamlTypeConverter converter) { - Converters.Add(converter); + Converters.Insert(0, converter); } ///