P/Invokes and Unmanaged Code
One of the biggest benefits of the .NET Framework is that the technology is a bridge between you and the Windows operating system and is responsible for managing a lot of system features (such as memory management). This reduces the risk of bad system resources management that could lead the system to unwanted crashes or problems. This is the reason (as you might recall from Chapter 1, “Introducing .NET 2015”) that .NET programming is also known as managed. The .NET Framework Base Class Library (BCL) exposes managed wrappers for most of the Windows API system so that you do not need to manually handle system resources. It also enables you to reap all the benefits of the CLR. By the way, in some situations you still ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access