5 ms·
C# has GC by default, but you can do manual memory management in "unsafe" blocks
by ArtifTh 5y ago
C# has GC by default, but you can do manual memory management in "unsafe" blocks
- pjmlp 5y agoYou can also do manual memory management in safe code. - value types - stackalloc is safe since C# 7 - SafeHandles since C# 2.0 - IDispose interface - IDispose like Dispose() since C# 8 - Marshal class since C# 1.0 - Span<>() classes since C# 7
- pjmlp 5y agoForgot to mention: - static lambdas since C# 9 - native function pointers since C# 9