Avoiding reflection in C# in way unsafer ways!
Explores unsafe C# techniques to access private fields without reflection, using memory layout and pointers for performance, as a fun educational exercise.
Explores unsafe C# techniques to access private fields without reflection, using memory layout and pointers for performance, as a fun educational exercise.
C# 13 may allow the use of 'ref' and 'unsafe' in iterators and async methods, addressing current limitations with references and spans.
Explores how const strings in C# can be modified using unsafe code and string interning, despite being compile-time constants.
Explores a C# technique to allocate class instances on the stack using unsafe code, comparing performance and limitations.
A guide to using unsafe memory pointers in Swift for low-level memory management and C interoperability.
Analyzes undefined behavior in unsafe Rust code when transmuting pointers, comparing it to Zig's safety guarantees.
Explains the 'fixed' keyword in C#, covering its role in unsafe code, how the compiler, JIT, CLR, and GC collaborate, and its use for pinning objects in memory.
Explores the System.Runtime.CompilerServices.Unsafe API in .NET for low-level, high-performance pointer manipulation while bypassing standard type safety.