.NET ArchitectureThroughout this book, we emphasize that the C# language cannot be viewed in isolation, but mustbe considered in parallel with the .NE
Type MeaningSelf-describing Types Data types that provide information about themselves for thebenefit of the garbage collector (see the next section).
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
One important aspect of garbage collection is that it is not deterministic. In other words, you cannotguarantee when the garbage collector will be cal
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
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
The architecture of exception handling also provides a convenient means to pass an object containingprecise details of the exception condition to an e
An important characteristic of assemblies is that they contain metadata that describes the types andmethods defined in the corresponding code. An asse
Shared AssembliesShared assemblies are intended to be common libraries that any other application can use. Because anyother software can access a shar
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
NamespacesNamespaces are the way that .NET avoids name clashes between classes. They are designed to avoid thesituation in which you define a class to
The Relationship of C# to .NETC# is a relatively new programming language and is significant in two respects:❑ It is specifically designed and targete
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
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
Creating Windows FormsAlthough C# and .NET are particularly suited to Web development, they still offer splendid support forso-called fat-client or th
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
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
Figure 1-4ASSEMBLYcontaining ILCODECOMPILATIONEXECUTIONLanguageInteroperabilitythrough CTSand CLSVB.NETSource Code.NET baseclassesAssembliesloadedCLR
05_575341 ch01.qxd 10/4/05 7:03 PM Page 28
You should note that the platform independence of .NET is only theoretical at present because, at thetime of writing, a complete implementation of .NE
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
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
Here are the important features of IL:❑ Object orientation and use of interfaces❑ Strong distinction between value and reference types❑ Strong data ty
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
circumstances in some of the languages that compile to managed code. Indeed, pointers (as opposed toreferences) are permitted only in marked blocks of
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