Skip to content

Use generic JsonStringEnumConverter - #31

Merged
xfischer merged 2 commits into
GeoJSON-Net:mainfrom
Captainpast:main
Mar 26, 2025
Merged

xfischer merged 2 commits into
GeoJSON-Net:mainfrom
Captainpast:main

Conversation

@Captainpast

Copy link
Copy Markdown
Contributor

Using the generic JsonStringEnumConverter<TEnum> (available since net8.0) instead of non-generic JsonStringEnumConverter

So source generation for Trimming and Native AOT is possible.

This closes #30

@DanielGekeler DanielGekeler left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@xfischer
xfischer self-requested a review March 26, 2025 09:41

@xfischer xfischer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xfischer
xfischer merged commit d490b51 into GeoJSON-Net:main Mar 26, 2025
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

Successfully merging this pull request may close these issues.

Use generic JsonStringEnumConverter rather than non-generic one.

3 participants