Wiley 978-0-7645-7534-1 Datasheet

Browse online or download Datasheet for Software manuals Wiley 978-0-7645-7534-1. Wiley Beginning AppleScript User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 26
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
.NET Architecture
Throughout this book, we emphasize that the C# language cannot be viewed in isolation, but must
be considered in parallel with the .NET Framework. The C# compiler specifically targets .NET,
which means that all code written in C# will always run within the .NET Framework. This has
two important consequences for the C# language:
The architecture and methodologies of C# reflect the underlying methodologies of .NET.
In many cases, specific language features of C# actually depend upon features of .NET, or
of the .NET base classes.
Because of this dependence, it is important to gain some understanding of the architecture and
methodology of .NET before you begin C# programming. That is the purpose of this chapter.
This chapter begins by going over what happens when all code (including C#) that targets .NET
is compiled and run. Once you have this broad overview, you take a more detailed look at the
Microsoft Intermediate Language (MSIL or simply IL), the assembly language that all compiled code
ends up in on .NET. In particular, you see how IL, in partnership with the Common Type System
(CTS) and Common Language Specification (CLS), works to give you interoperability between lan-
guages that target .NET. This chapter also discusses where common languages (including Visual
Basic and C++) fit into .NET.
Next, you move on to examine some of the other features of .NET, including assemblies, name-
spaces, and the .NET base classes. The chapter finishes with a brief look at the kinds of applications
you can create as a C# developer.
05_575341 ch01.qxd 10/4/05 7:03 PM Page 3
COPYRIGHTED MATERIAL
Page view 0
1 2 3 4 5 6 ... 25 26

Summary of Contents

Page 1 - COPYRIGHTED MATERIAL

.NET ArchitectureThroughout this book, we emphasize that the C# language cannot be viewed in isolation, but mustbe considered in parallel with the .NE

Page 2 - The Common Language Runtime

Type MeaningSelf-describing Types Data types that provide information about themselves for thebenefit of the garbage collector (see the next section).

Page 3

We won’t go into the details of the CLS specifications here. In general, the CLS won’t affect your C# codevery much, because there are very few non–CL

Page 4

One important aspect of garbage collection is that it is not deterministic. In other words, you cannotguarantee when the garbage collector will be cal

Page 5

Figure 1-2In general, any process is able to access memory only by specifying an address in virtual memory —processes do not have direct access to phy

Page 6

Figure 1-3If different executables are running in the same process space, they are clearly able to easily share data,because theoretically they can di

Page 7 - Strong Data Typing

The architecture of exception handling also provides a convenient means to pass an object containingprecise details of the exception condition to an e

Page 8

An important characteristic of assemblies is that they contain metadata that describes the types andmethods defined in the corresponding code. An asse

Page 9

Shared AssembliesShared assemblies are intended to be common libraries that any other application can use. Because anyother software can access a shar

Page 10 - Chapter 1

The great thing about the .NET base classes is that they have been designed to be very intuitive and easyto use. For example, to start a thread, you c

Page 11 - .NET Architecture

NamespacesNamespaces are the way that .NET avoids name clashes between classes. They are designed to avoid thesituation in which you define a class to

Page 12

The Relationship of C# to .NETC# is a relatively new programming language and is significant in two respects:❑ It is specifically designed and targete

Page 13

type-checking. Specifically, if you are using VBScript and want to implement error handling in yourpages, you have to use the On Error Resume Next sta

Page 14

Web FormsTo make Web page construction even easier, Visual Studio 2005 supplies Web Forms. They allow you tobuild ASP.NET pages graphically in the sam

Page 15 - Assemblies

Creating Windows FormsAlthough C# and .NET are particularly suited to Web development, they still offer splendid support forso-called fat-client or th

Page 16 - Private Assemblies

When combined with ADO.NET, C# has the ability to access quickly and generically data stores such asSQL Server and Oracle databases. The returned data

Page 17 - .NET Framework Classes

related technologies, Windows Forms are still a viable option for creating a user interface with speedand ease. Just remember to factor your code so t

Page 18

Figure 1-4ASSEMBLYcontaining ILCODECOMPILATIONEXECUTIONLanguageInteroperabilitythrough CTSand CLSVB.NETSource Code.NET baseclassesAssembliesloadedCLR

Page 19 - Namespaces

05_575341 ch01.qxd 10/4/05 7:03 PM Page 28

Page 20

You should note that the platform independence of .NET is only theoretical at present because, at thetime of writing, a complete implementation of .NE

Page 21

VB6 and this meant that VB6 was not a suitable language for running .NET programs. For example,VB6 is heavily integrated into COM and works by exposin

Page 22 - Architecture

The compiler raises an error if you attempt to use features that are not supported by .NET on managedtypes (for example, templates or multiple inherit

Page 23

Here are the important features of IL:❑ Object orientation and use of interfaces❑ Strong distinction between value and reference types❑ Strong data ty

Page 24

done with COM as an intermediary. Not only that, but the COM architecture did not permit implemen-tation inheritance, which meant that it lost many of

Page 25

circumstances in some of the languages that compile to managed code. Indeed, pointers (as opposed toreferences) are permitted only in marked blocks of

Page 26

The CTS doesn’t merely specify primitive data types but a rich hierarchy of types, which includes well-defined points in the hierarchy at which code i

Comments to this Manuals

No comments