Skip to content

Add support for feature switches, add option to disable dynamic objects support#1435

Merged
Sergio0694 merged 4 commits into
staging/AOTfrom
user/sergiopedri/feature-switches
Jan 17, 2024
Merged

Add support for feature switches, add option to disable dynamic objects support#1435
Sergio0694 merged 4 commits into
staging/AOTfrom
user/sergiopedri/feature-switches

Conversation

@Sergio0694
Copy link
Copy Markdown
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

Comment thread src/WinRT.Runtime/Configuration/FeatureSwitches.cs Outdated
@Sergio0694
Copy link
Copy Markdown
Member Author

Saves about 19 KB on .NET 8:

image

@Sergio0694 Sergio0694 merged commit 3b2c34a into staging/AOT Jan 17, 2024
@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