9 posts about unsafe code by 8 contributors.
Know unsafe code? Share what you know with developers who are learning it.
C# 15 enhances memory safety by making unsafe code boundaries explicit, shifting focus from pointer syntax to actual memory access for better auditing.
Unlock peak .NET performance with low-level C# techniques! Dive into unsafe code, spans, stackalloc, and P/Invoke to minimize allocations, control memory, and optimize critical paths. Learn when and how to bypass .NET's safety nets for real-time systems, high-frequency trading, and memory-sensitive apps.
Learn C# memory optimization techniques including garbage collection tuning, Span and Memory, unsafe pointers, stack allocation, finalizers, and object pooling.
In this article I will give a short description of one of the feature of C# which are pointers and so-called unsafe code. This subject is particularly close for C++ programmers. Moreover, it is a feature that we do not find in Java.
In this article you will learn about Pointers and Unsafe Code in C#.
We will see that C# allows suspending the verification of code by the CLR to allow developers to directly access memory using pointers.
Learn how to allocate short-lived arrays on the stack with stackalloc, access them through pointers, and copy array data using unsafe C# code.
Unlock safe self-referential structs in Rust! Ditch unsafe code for owned data, indices, and smart pointers. Master memory safety and borrowing with proven libraries. #rustlang
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article