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) highly reducing the risk of bad system resources management that could lead the system to unwanted crashes or problems. This is the reason why (as you may recall from Chapter 1, “Introducing the .NET Framework 4.0”) .NET programming is also known as managed. The .NET Framework base class library exposes managed wrappers for most of the Windows API system so that you do not need to manually handle system resources, and you can take all advantages from the CLR. By the way, there are situations in which ...
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