C# Deconstructed

Ebook Details


Mohammad Rahman

Year 2014
Pages 172
Publisher Apress
Language en
ISBN 9781430266709
File Size 4.96 MB
File Format PDF
Download Counter 2,103
Google Book Link

Ebook Description

C# Deconstructed answers a seemingly simply question: Just what is going on, exactly, when you run C# code on the .NET Framework? To answer this question we will dig ever deeper into the structure of the C# language and the onion-skin abstraction layers of the .NET Framework that underpins it. We’ll follow the execution thread downwards, first to MSIL (Microsoft Intermediate Language) then down through just-in-time compilation into Machine Code before finally seeing the results executed at the hardware level. The aim of this deep-dive is to provide you with a much more rounded knowledge of the environment within which you code exists. As a managed language, it’s best-practice to let the Framework deal with device interaction but you’ll find the experience of taking the cover off once in a while a very rewarding one that will greatly enrich your appreciate of the C# language and the way in which in functions. What you’ll learn Understand how C# handles your filesystem requests and passes them down to hard disks and memory Learn how RAM works and how programs map to address spaces Discover the C# compilation sequence in detail and follow it down from abstract code to actual function See how your device’s micro-processor executes Machine Code and just-in-time compilation provides it when it’s needed Learn how the Common Language Runtime (CLR) determines the execution of your code and handles Threading and Scheduling for your instructions Who this book is for This book is ideal for anyone who works with C# and has ever wondered what happens after they press F5. Table of Contents Anatomy of the C# compilation stack Data Access, Files and Storage Understanding Memory Usage The C# Compilation Sequence From CIL to Machine Code Execution through the CLR Execution Model II