.NET
  Home arrow .NET arrow Page 3 - 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 - .NET Framework and .NET Languages


    (Page 3 of 5 )


     
    When we say .NET languages we mean any language that works on the .NET Framework. In other words, we can call any language that uses the .NET Framework Class Library (FCL) and is managed by the Common Language Runtime (CLR) a .NET-compliant language (languages which support .NET Platform). From these languages: Microsoft Visual Basic.NET (VB.NET), Microsoft Visual C++.NET and there are also COBOL, Eiffel, Jscript, RPG and many others. But as we stated before, C# was designed especially for .NET Framework and there are some functionalities in C# you can’t do in other languages. However, Microsoft developed Visual Basic.NET as an upgrade for Visual Basic programmers who like to work with the .NET platform.

    All .NET-compliant languages will use FCL and CLR for creating applications. For example, VB.NET programmers will use the same function that C# programmers use to write a line to the console (console means the command-line screen), but of course there are difference to get this code done. Let’s look at the following .NET applications.

    This is the C# application that will write a line to the console:

    using System;

    namespace testingApplications
    {
     /// <summary>
     /// Summary description for Class1.
     /// </summary>
     class Class1
     {
      /// <summary>
      /// The main entry point for the application.
      /// </summary>
    [STAThread]
      static void Main(string[] args)
      {
       Console.WriteLine("I like C# Programming");
      }
     }
    }

    This is the VB.NET application that will write the same line to the console:

    Module Module1

        Sub Main()
            Console.WriteLine("I like C# Programming")
        End Sub

    End Module

    Figure 1 illustrates the result of compiling and running the first application (C# application):


    Figure 2 illustrates the result of compiling and running the second application (VB.NET application):

    youssef

    Here we get the same result using the same function which writes a line to the console but with different .NET languages. So all .NET languages will use the capabilities of FCL and CLR, but each language implementation differs from the others. For example, C# is case sensitive language and VB.NET is not.

    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