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

added by DotNetKicks
9/14/2016 12:19:13 PM

2 Kicks, 698 Views

In which we use System.Runtime.CompilerServices.Unsafe a generic API ("type-safe" but still "unsafe") and mess with the C# Type System! The post covers the following topics: The XML documentation comments for System.Runtime.CompilerServices.Unsafe state that it: Contains generic, low-level functionality for manipulating pointers.