Biohazrd
Biohazrd copied to clipboard
Add support for .NET 7 `DisableRuntimeMarshalling`
.NET 7 is introducing a new attribute for disabling runtime marshaling across the entire assembly. Biohazrd should use this when possible to eliminate some of the oddities around bool
/char
handling.
- [x] https://github.com/MochiLibraries/Biohazrd/issues/196
- [x] https://github.com/MochiLibraries/Biohazrd/issues/237
- [x] https://github.com/MochiLibraries/Biohazrd/issues/200
Not strictly necessary for this, but it simplifies eliminating MarshalAs for bools:
- [ ] https://github.com/MochiLibraries/Biohazrd/issues/236