C#
  Home arrow C# arrow Page 2 - Introducing C# and the .NET Framework
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C#

Introducing C# and the .NET Framework
By: Michael Youssef
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 82
    2005-01-31

    Table of Contents:
  • Introducing C# and the .NET Framework
  • The .NET Framework
  • C# Source code
  • The .NET Type Story
  • A World of .NET
  • The Common Language Runtime
  • The Common Type System
  • A World of Interoperability Through the CLS
  • Where Can I Find the .NET SDK?
  • Writing the Hello World Example with the C# Compiler
  • Assemblies
  • Analyzing the Code

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Introducing C# and the .NET Framework - The .NET Framework


    (Page 2 of 12 )

    A Framework is a set of class libraries that provide the developers with the common system functions and services that can be used by a programming language. But the .NET Framework extends this concept. The .NET Framework is a large set of class libraries that can be used for many programming languages, like Microsoft's C#, Visual Basic, Managed C++ and more. So the first thing you notice here is that the .NET Framework class libraries can be used for more than one programming language (we will understand this more when I get to CTS and CLS).

    Besides the Class Libraries, the Framework provides a Common Language Runtime (CLR) that manages the execution of any .NET application written in it using a .NET programming language. Simply put, the .NET Framework consists of Class Library that provides the common system services and functions that you will use and extend in your applications, and an Execution Environment that manages .NET Applications. The functionality provided by the Class Library will help you to develop Windows applications, Web applications, distributed applications and even let you integrate XML and XML Web services into your applications.

    The .NET Framework Class Library is written by Microsoft and it's very easy to use. For example, if you want to write a line to the console, you will use a method called WriteLine() of the Console class and pass to the method a string that you want to be written to the console. You have classes for almost everything you will need to do, such as: text manipulation, threading manipulation, XML handling, I/O, GUI controls for Windows and Web applications, database access presented as ADO.NET and Enterprise Services functionality.

    It's important to note that C# is not part of the .NET Framework. C# is an Object Oriented programming language of its own, and it has its own syntax, control structures and construction building statements. At the same time, it has been created to be used with the .NET Framework, and the C# compiler generates code that runs under the .NET Environment. This code is called Managed code because it's managed by the Common Language Runtime Environment. In other words, Microsoft designed C# to be the core programming language of the .NET platform and to use, leverage and extend the .NET Framework class library.

    I know that you now have many questions to ask, such as "How is it that all these programming languages use only one set of class libraries?" and "What is the role of the Common Language Runtime in executing .NET Applications?" We will take it step by step in the next few sections so you can answer this questions by yourself. First let's consider what happen when you compile a C# source file.

    More C# Articles
    More By Michael Youssef


     

    C# ARTICLES

    - C# and XML
    - Pointers and Arrays in C#
    - C# 3.0 Extension Methods
    - Overloading Operators in C#
    - Iterators and Nullable Types
    - Patterns and Iterators in C#
    - C# Exceptions
    - Methods in C#
    - Delegates and Events in C#
    - Advanced C#
    - Working with Regular Expressions in C#
    - Sending Simple E-Mail in C#
    - Building C# Comparable Objects: IComparable ...
    - Color Transformation Applications in C# GDI+...
    - Performing Color Transformation Operations i...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT