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 for feature switches, add option to disable dynamic objects support #1435

Merged
merged 4 commits into from
Jan 17, 2024

Conversation

Sergio0694
Copy link
Member

Closes #1434

Overview

This PR includes the following changes:

  • Adds a new FeatureSwitches class and the necessary infrastructure for custom feature switches
  • Adds a new CsWinRTEnableDynamicObjectsSupport feature switch to disable support for dynamic objects
  • Wires up the feature switches in the projections setup

@Sergio0694
Copy link
Member Author

Saves about 19 KB on .NET 8:

image

@Sergio0694 Sergio0694 merged commit 3b2c34a into staging/AOT Jan 17, 2024
9 checks passed
@Sergio0694 Sergio0694 deleted the user/sergiopedri/feature-switches branch January 17, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FindTypeByName always roots ExpandoObject (and is also undefined behavior)
3 participants