15.02.2015 Views

C# 4 and .NET 4

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

22 ❘ ChaPTer 1 .net Architecture<br />

➤ JIT compilation<br />

➤ Application domains<br />

➤ Garbage collection<br />

Figure 1-4 provides an overview of how these features come into play during compilation <strong>and</strong> execution.<br />

COMPILATION<br />

<strong>C#</strong> Source<br />

Code<br />

ASSEMBLY<br />

containing IL<br />

CODE<br />

Language<br />

Interoperability<br />

through CTS<br />

<strong>and</strong> CLS<br />

VB.<strong>NET</strong><br />

Source Code<br />

ASSEMBLY<br />

containing IL<br />

CODE<br />

.<strong>NET</strong> base<br />

classes<br />

EXECUTION<br />

PROCESS<br />

Application domain<br />

CODE EXECUTES<br />

HERE<br />

CLR ORGANIZES:<br />

JIT<br />

compilation<br />

Security<br />

permissions<br />

granted<br />

Memory type<br />

safety checked<br />

Creates App<br />

Domain<br />

Garbage collector<br />

cleans up sources<br />

COM interop<br />

services<br />

Assemblies<br />

loaded<br />

legacy COM<br />

component<br />

figure 1-4<br />

You learned about the characteristics of IL, particularly its strong data typing <strong>and</strong> object orientation, <strong>and</strong><br />

how these characteristics influence the languages that target .<strong>NET</strong>, including <strong>C#</strong>. You also learned how<br />

the strongly typed nature of IL enables language interoperability, as well as CLR services such as garbage<br />

collection <strong>and</strong> security. There was also a focus on the Common Language Specification (CLS) <strong>and</strong> the<br />

Common Type System (CTS) to help deal with language interoperability.<br />

Finally, you learned how <strong>C#</strong> could be used as the basis for applications that are built on several .<strong>NET</strong><br />

technologies, including ASP.<strong>NET</strong>.<br />

Chapter 2 discusses how to write code in <strong>C#</strong>.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!