aaubry / YamlDotNet

YamlDotNet is a .NET library for YAML
MIT License
2.58k stars 486 forks source link

CurrentCulture in TypeConverter being used #993

Open riezebosch opened 1 month ago

riezebosch commented 1 month ago

https://github.com/aaubry/YamlDotNet/blob/7923dd8e600f7fea7710f3b45f3fadcfa1aa589c/YamlDotNet/Serialization/Utilities/TypeConverter.cs#L77

I guess this is the bug that breaks my FromYaml where I'm lacking specific type information: https://github.com/riezebosch/YamlDotNetDataReader/blob/main/YamlDotNetDataReader/DataReaderTypeConverter.cs#L27

Because it nows deserializes as a culture dependant object and incorrectly deserializes floating numbers.