February 06, 2003

The Basics of the .NET Framework: The Base Framework


RSS
Subscribe to Windows IT Pro | See More Windows OSs Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

In ".NET Framework Basics: The Common Language Runtime" (http://www.winnetmag.com/articles/index.cfm?articleid=37657) and ".NET Framework Basics: The Relationship Between the CLS and CLR" (http://www.winnetmag.com/articles/index.cfm?articleid=37907), I looked at how the Common Language Runtime (CLR) and Common Language Specification (CLS) function in the .NET Framework gives developers a consistent base on which to develop applications. Now I'll introduce the layer above the CLR--the Base Framework--and show you its role in the .NET architecture.

The Base Framework provides the fundamental classes that every .NET application uses, including the Object class, the String class, and the Type class. (These aren't the only classes, but they are the core ones.) Almost every aspect of developing applications with Visual Basic .NET involves objects, including some entities you might not think of as objects, such as strings and integers. All objects in Visual Basic .NET are derived from a base Object class called System.Object and inherit its methods. In the .NET Framework, even objects written in different languages can inherit from one another.

The String class represents Unicode data that applications written in different programming languages or for different cultures can share, thus avoiding the need to convert data between different string types. (In this case, "culture" refers to the format of data such as dates. For example, in the United States, today's date is formatted as February 6, 2003. In other cultures, the same date is 6 February 2003. Same information, different format.) Data in the String class can't be changed after a string is created--changing it creates a new string object.

The Type class represents type declarations--class types, interface types, array types, value types, and enumeration types. An object's Type class exposes metadata, or information about the object, during runtime to let the just-in-time (JIT) compiler generate machine code from the source code. (.NET applications are compiled twice. The first time, the language compiler converts the source code to an assembly made of executable code and metadata. During the second compiling--which is done when you install an application or the first time you call a method--the JIT compiler reads the metadata and converts the assembly to machine code.)

The Base Framework supports the next level of the .NET architecture that describes how data is organized and made accessible to the upper layers. I'll look at how data is stored in the .NET architecture next time.

End of Article



Windows IT Pro Community
Blogs





Top Viewed ArticlesView all articles
10 Reasons to Deploy Windows Vista

The decision to upgrade your XP systems to Vista is simple when you consider features such as easier backup, a great desktop search, and vastly improved security options. ...

10 Reasons Not to Deploy Windows Vista

The decision to upgrade to Vista has to make business sense, but many companies find the costs in training and application compatibility problems outweigh any benefits Vista brings. ...

WinInfo Short Takes: CES 2009 Special Edition

An often irreverent look at some of the week's other CES 2009 news, including covering the Vegas spectacle from the comfort of my own home, Windows 7 public beta, a weird Microsoft song application, Palm Pre, pending Microsoft mobile moves, and much more ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


SQL Server Magazine Office & SharePoint Pro Windows Dev Pro ITTV
IT Library Technology Resource Directory Connected Home Windows SuperSite
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing