Is there a c# equivalent to c malloc and realloc?
i know what lists are but i just want low level control
10 Replies
If you want to manually manage memory, use a non-managed language
NativeMemory Class (System.Runtime.InteropServices)
This class contains methods that are mainly used to manage native memory.
knock yourself out
then don't use C#, one of the main features is automatic memory management
maybe they just want to play around
maybe, they haven't given any details
yeah
is there any particular reason you want to do it in C#?
i love memmory leaks
training for #allow-unsafe-blocks