Hacker News new | ask | show | jobs
by pjmlp 1865 days ago
You 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

1 comments

Forgot to mention:

- static lambdas since C# 9

- native function pointers since C# 9