You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(generator): replace C# 10 inferred delegates with direct method calls for C# 9 compatibility
Generated code was using C# 10 "inferred delegate type" feature (var = method group)
which is incompatible with Unity's C# 9.0 support. This caused CS8773 errors when
building in Unity environments.
Changes:
- ArrayGenerator: Removed delegate variable declarations in monomorphic paths
- Replace indirect delegate calls with direct CachedSerializer/CachedDeserializer method calls
- Fixes serializer, deserializer (out), and deserializer (ref) code paths
Benefits:
- C# 9.0 compatible for Unity environments
- Zero delegate allocation overhead (performance improvement)
- Better JIT inlining potential with direct calls
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments