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

Some requests #112

Open
rube200 opened this issue Jun 19, 2024 · 2 comments
Open

Some requests #112

rube200 opened this issue Jun 19, 2024 · 2 comments

Comments

@rube200
Copy link
Contributor

rube200 commented Jun 19, 2024

One of the things I miss in VYaml compared to YamlDotnet is the possibility of choosing the namingcase in the options, i think it would be good to have NamingConvention in YamlSerializerOptions,
Also i think you could improve enum parse, on my use cases i usually have them insentive case, but the current implementation doesnt support it.
At last i recommend the use of Enum.TryParse.

@hadashiA
Copy link
Owner

Basically, I agree.

Initially, the policy was to implement a lot of things in SourceGenerator, so it was not possible to make changes in Options.

However, it is not impossible to change it and we will consider it.

As for Enum.TryParse, I think we don't use it to support netstandard2.1 / Unity. Maybe.
I might consider including the #if directive.

@rube200
Copy link
Contributor Author

rube200 commented Jul 25, 2024

Not sure about unity but Enum.Tryparse is implemented in almost any version of dotnet https://learn.microsoft.com/en-us/dotnet/api/system.enum.tryparse?view=netframework-4.0

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

2 participants