Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CurrentCulture in TypeConverter being used #993

Open
riezebosch opened this issue Oct 16, 2024 · 0 comments
Open

CurrentCulture in TypeConverter being used #993

riezebosch opened this issue Oct 16, 2024 · 0 comments

Comments

@riezebosch
Copy link

return ChangeType(value, destinationType, new CultureInfoAdapter(CultureInfo.CurrentCulture, provider), enumNamingConvention, typeInspector);

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@riezebosch and others