Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


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



Reader Comments
rrr

hebbar123 June 13, 2008 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Microsoft Kills OneCare, Will Launch Free Security Solution

Microsoft on Tuesday announced that it would retire its $50-a-year security subscription product, Windows Live OneCare, and replace it with a free solution codenamed "Morro." Unlike OneCare, however, Morro will focus only on core anti-malware features and ...

The website is down because someone removed the X-Box

What happens when a manager mistakes a server for a games console. ...

Xbox 360 Overhaul Arrives with New UI, Avatars

Xbox 360 owners who logon to the system's Xbox Live system this morning will receive the most significant functional change yet to the console's user interface, or dashboard. Dubbed the New Xbox Experience, this new front-end features a completely new ...


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

Related Events 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.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing