C# FAQ 1.1 - What is Microsoft .NET?

Microsoft .NET is one of the powerful technologies available today for developing robust Windows and Web applications. It consists of several programming languages such as C#, Visual Basic .NET, Visual C++ .NET, Visual J# .NET, and frameworks like ASP.NET. The Microsoft .NET Platform comprises a number of key components, including the following:

  • .NET Framework
  • .NET Compact Framework for smart devices such as Pocket PC and Mobiles
  • Visual Studio .NET
  • Microsoft Office 2003 System
  • XML Web services
  • Enterprise Servers such as Windows Server 2003

Microsoft's .NET Framework is comprised of two main components: the Common Language Runtime (CLR) and the .NET Framework class libraries. The CLR is the real foundation of the .NET Framework. It is the execution engine for all .NET applications. Every target computer requires the CLR to successfully run a .NET application that uses the .NET Framework. The main features of CLR include:

  1. Automatic Memory Management
  2. Thread Management
  3. Code Compilation & Execution
  4. Code Verification
  5. High level of security
  6. Remoting
  7. Structured Exception Handling
  8. Interoperability between Managed and Unmanaged code
  9. Integration with the Microsoft Office System

All .NET applications are compiled into Intermediate Language code (MSIL). When executed on the CLR, MSIL is converted into native machine code specific to the operating platform. This process is done by a Just In Time (JIT) compiler. The code executed by the CLR is called Managed Code. This code is type safe and thoroughly checked by the CLR before being deployed. The .NET runtime also provides a facility to incorporate existing COM components and DLLs into a .NET application. Code that is not controlled by the CLR is called Unmanaged Code.

The .NET Framework is further comprised of the Common Type System (CTS) and Common Language Specification (CLS). The CTS defines the common data types used by .NET programming languages. The CTS tells you how to represent characters and numbers in a program. The CLS represents the guidelines defined by for the .NET Framework. These specifications are normally used by the compiler developers and are available for all languages, which target the .NET Framework.

Another core component of Microsoft's .NET Framework is its built-in powerful class libraries. It is an object-oriented collection of reusable classes or types that you can use to develop applications such as traditional command line, Windows, and Web applications. It contains around 3400 classes, classified logically into so-called Namespaces. You will learn more about namespaces in FAQ 1.4.

Each class contains numerous methods and properties, which you will use for your programming tasks. These libraries are available for any language under the CLR environment (see Figure 1.1.1).

Figure 1.1.1

Furthermore, these libraries will be installed automatically at the time you install the .NET Software Development Kit (SDK). An interesting factor about .NET is that if you are familiar with one language, such as C#, it will be easy for you to migrate to other languages such as Visual Basic .NET without spending much time learning new syntaxes and conventions. However, there are some differences between C# and Visual Basic .NET with regard to the applicability of syntaxes. For instance, C# is a case-sensitive language, whereas Visual Basic .NET is not. All statements in C# end with a semicolon (;). If you are averse to semicolons, jump to Visual Basic .NET.

On the Web

A complete list of .NET Framework class libraries can be accessed at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/cpref_start.asp.

One of the interesting points to note is that the CLR itself manages the life of objects. This is the effect of the Automatic Garbage Collection system built into it. When the CLR finds an object that is not being used, it destroys it and thus frees its memory allocation.

The corresponding compilers of any .NET language generate Meta code upon successful compilation. This code is managed and contains a lot of information about types, its members, and references used. You can view the generated Meta code by using a tool called IL Dissembler that ships with the .NET Framework. You will learn more about this tool in a later FAQ.

As explained above, .NET applications can be developed by using a variety of programming languages. Whereas C# and Visual Basic .NET comprise most of the .NET development, there are over 20 other languages that support .NET. These are languages such as Visual C++ .NET, Visual J# .NET, and COBOL .NET. In the future, you can expect even more languages to be available for use with .NET. All these languages have the ability to use the same set of .NET Framework class libraries and hence the learning curve is simplified.

Microsoft packaged all the essential tools for developing, testing, and running a .NET application into a Software Development Kit (SDK). It comes with the CLR as well as command line compilers for C#, Visual Basic .NET, and the runtime engine for ASP.NET. It also includes documentation and sample programs. Microsoft also sells Visual Studio .NET, which is a development tool used for creating applications and components using the .NET Framework. It largely simplifies the work of developers with the help of user-friendly wizards and templates.



About the Author

Anand Narayanaswamy

Anand Narayanaswamy (Microsoft MVP) is a freelance writer for Developer.com and Codeguru.com. He works as an independent consultant and runs NetAns Technologies (http://www.netans.com)which provides affordable web hosting services. He is the author of Community Server Quickly (http://www.packtpub.com/community-server/book). Anand also runs LearnXpress.com (http://www.learnXpress.com) and Dotnetalbum.com (http://www.dotnetalbum.com) and regularly contributes product and book reviews for various websites. He can be reached at ananddotnet@yahoo.co.in

Comments

  • air jordanrcfc

    Posted by Bloockavaapek on 11/14/2012 03:22am

    maeom air jordan pas cher btis http://www.frzichaussuresjordnnensoldes.com/

    Reply
  • coach outlet kansas city mo

    Posted by Ordenenue on 11/13/2012 12:01am

    dcibi vwyum christian louboutin shoes you louboutin outlet christian louboutin outlet uk genuine vluhd hzcgfz C# FAQ 1.1 - What is Microsoft .NET? dqivrwn ugg outlet in michigan ugg boots ugg boots vancouver uosvcwe xupby louis vuitton handbags eluxury louis vuitton purses louis vuitton outlet zone zppopvad beats by dre warranty beats dr dre cheap cheap beats by dre china cbjppqnx

    Reply
  • http://lisseurghdpascher.blogspot.com/ utknqn iwlbqy

    Posted by PambInabe on 11/12/2012 11:19am

    C# FAQ 1.1 - What is Microsoft .NET? ynxnck tmdlbyh ecelvi bijoux pandora pas cher skbnpwx xkcokmgl lisseur ghd udthvoi xwmer stylo bille mont blanc cpitlvbi casque by dre hnkbbmim doudoune moncler soldes wybsjers

    Reply
  • gtiyzluh rbaqllkg uisbf http://achatadoudounemonclairsonline.webnode.fr/

    Posted by Agermemalkera on 11/12/2012 01:34am

    omtfw arzlm air jordan spizike jejhj plpdyi C# FAQ 1.1 - What is Microsoft .NET? necxwoj ralph lauren pas cher pmxmcbc nudzg moncler doudoune fjznofno moncler pais lpkfoztb doudoune moncler soldes exkztrbf

    Reply
  • jjhzfwqh khrqryof iyuei http://frairjodannensoldes.blogspot.com/

    Posted by soodcanioli on 11/11/2012 01:44pm

    fpmul copio ralph lauren pas cher mvtbc adzbvw C# FAQ 1.1 - What is Microsoft .NET? sycctgv doudoune moncler sofxwun gaczk doudoune moncler soldes khatnarf moncler pas cher soejnoxg doudoune moncler pas cher wzmadgti

    Reply
  • dwhdrvsi ziqgunle mxpvd http://frccdoudounemonclairpascher.webnode.fr/

    Posted by bloophora on 11/11/2012 09:27am

    rpxaw zyzsl christian louboutin pas cher doxjg pzhrya C# FAQ 1.1 - What is Microsoft .NET? zsevjln louboutin pas cher wrpeghr zmldp sac longchamp ferkczsw sac longchamp pliage iulryqtb air jordan iylffqei

    Reply
  • beats by dre oSDoT louis vuitton

    Posted by duecyDayday on 11/11/2012 03:35am

    beats by dre pas cher hbMe2 T beats by dre zkQy0 B louis vuitton pas cher cuRt6 L http://www.frncasquesbydremagasin.com

    Reply
  • http://chaussureslouboutnnipascher.webnode.fr/ eoagxl scbasw

    Posted by boowiffRodial on 11/09/2012 11:45pm

    twqik qfneo louboutin yuyxh ftgdpy C# FAQ 1.1 - What is Microsoft .NET? wbnqelh air jordan nooreni eszdg http://frpoloralphlaurenensoldes.blogspot.com/ mcurrgbl doudoune moncler femme lrdpbwmd doudoune moncler wbgpbvtq

    Reply
  • ralph lauren sale VgZW timberland outlet

    Posted by HingturnHoone on 11/07/2012 09:12pm

    polo ralph lauren outlet AFmZH mulberry sale IJiFR timberland boots RUgOZ http://www.ralphlaurennsalesonline.co.uk

    Reply
  • http://frdoudounemonclermagasinn.blogspot.com/ ybtfem kiigff

    Posted by bloophora on 11/06/2012 06:51am

    C# FAQ 1.1 - What is Microsoft .NET? mfsvll ilxwvas tqtkkb abercrombie xzxxusu qbtdulhp http://chaussureslouboutinsoldes.blogspot.com/ ksuwvdc bvvfm

    Reply
  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • IBM Worklight is a mobile application development platform that lets you extend your business to mobile devices. It is designed to provide an open, comprehensive platform to build, run and manage HTML5, hybrid and native mobile apps.

  • On-demand Event Event Date: October 29, 2014 It's well understood how critical version control is for code. However, its importance to DevOps isn't always recognized. The 2014 DevOps Survey of Practice shows that one of the key predictors of DevOps success is putting all production environment artifacts into version control. In this webcast, Gene Kim discusses these survey findings and shares woeful tales of artifact management gone wrong! Gene also shares examples of how high-performing DevOps …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds