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

Fix compiler error on Unity + .NET Standard 2.0 + generated Union code #818

Merged
merged 2 commits into from
Feb 15, 2020

Conversation

neuecc
Copy link
Member

@neuecc neuecc commented Feb 12, 2020

Union that generated by mpc uses RuntimeTypeHandleEqualityComparer but it is enclosed #if !NET_STANDARD_2_0) in DynamicUnionResolver.cs.
So if Unity + .NET Standard 2.0 + exists union code can not compile.

This PR separate RuntimeTypeHandleEqualityComparer to Internal/RuntimeTypeHandleEqualityComparer.cs.

And includes tiny fix of mpc.

@neuecc neuecc requested a review from AArnott February 12, 2020 11:07
@AArnott AArnott changed the title Fix compler error on Unity + .NET Standard 2.0 + generated Union code Fix compiler error on Unity + .NET Standard 2.0 + generated Union code Feb 14, 2020
@neuecc neuecc merged commit 67b8e6b into master Feb 15, 2020
@neuecc neuecc deleted the fix-unity-netstandard20-union branch February 15, 2020 14:05
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

2 participants