Should this unsafe code work also in .NET Core 3?

Ooh, this is a fun find; what is happening here is that your local is getting optimized away – there are no locals remaining, which means that there is no .locals init, which means that stackalloc behaves differently, and does not wipe the space; private static unsafe uint Reinterpret1() { byte* bytes = stackalloc byte[4]; … Read more

Practical use of `stackalloc` keyword

The sole reason to use stackalloc is performance (either for computations or interop). By using stackalloc instead of a heap allocated array, you create less GC pressure (the GC needs to run less), you don’t need to pin the arrays down, it’s faster to allocate than a heap array, an it is automatically freed on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)