Matt Warren 9/14/2016

Subverting .NET Type Safety with 'System.Runtime.CompilerServices.Unsafe'

Read Original

This technical article provides an in-depth look at the System.Runtime.CompilerServices.Unsafe API in .NET. It explains what the API is, why it's useful for high-performance scenarios (like in the Kestrel web server), and how it allows developers to manipulate pointers and subvert the C# type system in a 'type-safe' but still unsafe manner. The post covers its methods, use cases, and safety considerations.

Subverting .NET Type Safety with 'System.Runtime.CompilerServices.Unsafe'

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week