.NET
  Home arrow .NET arrow Page 2 - Visual C# .NET Part 2: Compiling .NET Code
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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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? 
.NET

Visual C# .NET Part 2: Compiling .NET Code
By: Michael Youssef
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 47
    2004-06-02

    Table of Contents:
  • Visual C# .NET Part 2: Compiling .NET Code
  • Managed Code vs. Unmanaged Code
  • .NET Framework and .NET Languages
  • Visual Studio.NET and .NET Languages
  • Compiling the Application

  • 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


    Visual C# .NET Part 2: Compiling .NET Code - Managed Code vs. Unmanaged Code


    (Page 2 of 5 )


     
    When we write .NET code that uses the services, functions, and capabilities of the .NET Framework Class Library (FCL), then we call that code “Managed code” because it’s managed by the Common Language Runtime (CLR). As you know, the CLR manages the execution of .NET programs, and managing the code is one way of managing .NET applications. When we write Managed Code, we don’t care about memory management or handling operating system low-level functions because CLR abstract these details from us and manages them. So writing managed code will improve applications performance.

    You can write “Unmanaged Code” too. It’s the code that is not managed by the CLR, but it’s your responsibility to manage the memory and many other things. CLR can’t control this kind of code, but at the same time this code is a powerful feature because you will gain access to the low-level operating system functions and  maybe will be useful in some circumstances. But the most of us will use the managed code and benefit from CLR management and capabilities.

    C# Overview

    C# was created by Microsoft as the primary language for the .NET Framework. Microsoft designed C# in a way to make it easy for C, C++ and Java programmers to migrate to .NET. C# has roots in C, C++ and Java so this migration is easy for these languages’ programmers. C# syntax not complicated like C++ so learning C# is much easier that C++. Almost all of the operations that you can do with C++ you can do with C# except for the operations that access low-level operating system functions, but you still can do these operations using unmanaged code. C# is the best .NET language because it’s the only language that is designed specially for .NET Framework, and it will be the first language that will support .NET Framework versions on the other platforms.

    .NET Framework Applications

    With .NET Framework we can create any kind of applications that we want, but like the console applications which are simple command-line interfaces without any windows, Windows Applications which are applications with complex interface which contains buttons, menus, text boxes, option boxes and many other visual components. There are also web applications and web services, which are Internet-based applications and the core of Microsoft.NET technologies as we stated before. You will understand the different kinds of .NET applications as you go further in the .NET world. Here we will discuss the first two things (Console applications, Windows applications) only.

    More .NET Articles
    More By Michael Youssef


     

    .NET ARTICLES

    - Building Applications with Windows Workflow ...
    - Building the Data and Business Layers Using ...
    - The Transformed XML Explorer in MFC
    - List Control and Property Grid with the MFC ...
    - Font, Shell and Masked Edit Controls for MFC
    - Color, Link and Image Editor Controls for M...
    - New Controls for MFC
    - The Windows Ribbon Framework
    - Markup Language for the Ribbon Framework
    - Visually Upgrade Your MFC Project
    - New Features for the Statusbar in MFC
    - Working with the Statusbar in MFC
    - Iron Speed Design v60 Review
    - Binary and XML Serialization
    - Using CrystalReportViewer to Display Crystal...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek