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

Add support to opt-in to including fields in model access #45

Merged
merged 2 commits into from
Oct 20, 2022

Conversation

wattsyart
Copy link
Contributor

Hello,

This is a draft PR to propose adding TomlModelOptions.IncludeFields property that supports fields in reflection model serialization (it is irrelevant for dictionary accessors, and ignored in those cases).

I need this for my game engine which uses fields over properties in performance critical areas, where the inlined backing fields add overhead.

@wattsyart wattsyart marked this pull request as ready for review October 19, 2022 22:32
@xoofx xoofx added the enhancement New feature or request label Oct 20, 2022
@xoofx xoofx merged commit eb65a29 into xoofx:main Oct 20, 2022
@xoofx
Copy link
Owner

xoofx commented Oct 20, 2022

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants