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

Enum C# Fixes #189

Merged
merged 9 commits into from
Feb 9, 2022
Merged

Enum C# Fixes #189

merged 9 commits into from
Feb 9, 2022

Conversation

andrewmd5
Copy link
Contributor

Restores the unsafe reinterpreting of values when reading and writing enums to avoid runtime overhead. This was how it worked prior to #169, and this change restores it, albeit with a new call to System.Runtime.CompilerServices.Unsafe.AsRef to avoid temporary variables in generated code.

@andrewmd5 andrewmd5 merged commit 35e0d7d into master Feb 9, 2022
@andrewmd5 andrewmd5 deleted the enum-csharp-fix branch July 18, 2022 15:35
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