-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logic to properly honor naming policy when serializing flag enums (…
…#36726) * Add logic to properly honor naming policy when serializing flag enums * Cache JsonEncodedText, add optimization to-do, and use .Contains * Fix CI failure * Apply feedback, use enum value as lookup key, cache result even when naming policy is not used * Use ulong as name cache key and perform caching at warm up * Address feedback - set cap for name cache, compute cache key properly, and add more tests
- Loading branch information
Showing
4 changed files
with
244 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters