logical-intent
logical-intent
> just fyi, under Unix-like systems, the method is implemented by `NativeMemory.Alloc`, essentially `malloc`. > > https://github.com/dotnet/runtime/blob/128fdfd1fd982e277e969d5c7ca1710345f4f649/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Unix.cs#L59-L62 > > https://github.com/dotnet/runtime/blob/128fdfd1fd982e277e969d5c7ca1710345f4f649/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NativeMemory.Unix.cs#L126-L137 Thank you very much for your reply. In some ways...
Hi @AaronRobinsonMSFT, thanks for your interest. > > It is an odd default since memory allocated with C++ new[] is surely not safe to allow NativeMemory.Alloc to delete. > >...