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

Simplify enum parsing utilities #408

Merged
merged 1 commit into from
Feb 23, 2018

Conversation

twsouthwick
Copy link
Member

The current parsing logic has a caching mechanism that duplicates a lot of code and allocates a number of unneeded objects. This cleans up the parsing mechanism to cache at the onset with minimal allocations. By moving to its own type (EnumStringLookup), the EnumValue itself can more easily inherit from OpenXmlValueType and get a lot of the error checking for free.

@twsouthwick twsouthwick merged commit 9433c61 into dotnet:master Feb 23, 2018
@twsouthwick twsouthwick deleted the enumvalue-cleanup branch February 23, 2018 21:50
@twsouthwick twsouthwick added this to the v2.9 milestone Apr 10, 2018
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.

None yet

1 participant