Memory & Performance
6 features across 4 C# versions
Lightweight Value Tuples
Enables multi-value assignment returns directly via stack structures, completely eliminating object allocation overhead.
Span<T> Optimization Hooks (C# 7.2)
Exposes memory-safe contiguous slices of arbitrary memory layout arrays (stack, heap, or native) entirely free from structural copying penalty.
Ref Struct Declarations (C# 7.2)
Enforces that a structural object variant type live exclusively inside stack limits, eliminating heap migration patterns entirely.
Ref Fields inside Ref Structs
Permits ref struct instances to internally preserve references pointing to scoped memory locations, enhancing processing performance.
Inline Arrays Allocation Control
Enables structures to construct fixed-size arrays embedded cleanly inside a stack boundary, delivering high performance without heap allocations.
Flexible Params Collections
Allows the params keyword modifier to accept arbitrary collection types—such as memory-optimized Span elements—bypassing allocation penalties.