Skip to content

remove unnecessary Unsafe enum casting optimization that causes compiler warning#384

Merged
andrewmd5 merged 1 commit into
6over3:masterfrom
mayfieldiv:csharp-enum-warning
Feb 17, 2026
Merged

remove unnecessary Unsafe enum casting optimization that causes compiler warning#384
andrewmd5 merged 1 commit into
6over3:masterfrom
mayfieldiv:csharp-enum-warning

Conversation

@mayfieldiv
Copy link
Copy Markdown
Contributor

Resolves #383. See #383 for more details

…ler warning

a simple cast produces the same JIT optimized assembly
@andrewmd5 andrewmd5 merged commit 03a2a76 into 6over3:master Feb 17, 2026
8 checks passed
@mayfieldiv mayfieldiv deleted the csharp-enum-warning branch March 2, 2026 17:57
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.

[C#] Compiler warning CS9193 in generated enum serialization

2 participants