C#
  Home arrow C# arrow Page 4 - C# - An Introduction
IBM developerWorks
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM developerWorks
 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#

C# - An Introduction
By: Michael Youssef
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 252
    2003-11-17

    Table of Contents:
  • C# - An Introduction
  • Keywords
  • Identifiers
  • C# Statements
  • C# Building-Blocks
  • Commenting Your Code
  • Case-Sensitivity and Syntax Errors
  • Organizing Code Using White Space
  • Conclusion

  • 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    C# - An Introduction - C# Statements


    (Page 4 of 9 )

    A C# statement is the same as a complete sentence in the English language. This is the best and simplest analogy that illustrates what a statement is. Look at the following example:

    I like Microsoft products.

    Anyone reading this sentence will understand that I like Microsoft products.  However, if I write it like this:

    I like.

    What do you like? This is what you may ask because it’s not a complete sentence.  The same thing goes with a C# statement.   It forms a complete instruction that the C# compiler can understand.  So the next statement adds two numbers and stores the value into memory.

    memory = 2 + 5;

    Note that C# statements end with the semicolon “;”, whereas English sentences end with a full stop “.”  In this last C# statement we told the compiler to put the result of adding these two numbers into memory.  Don’t worry about understanding the code right now; that will be covered later on.

    You must know that C# programs consist of sequences of C# statements that execute in ascending order like the following example:

    {
    statement 1
    statement 2
    statement 3
    }

    The first statement (statement 1) will execute first, then statement2 and end up with the last one (statement 3) being executed.

    More C# Articles
    More By Michael Youssef


     

    C# ARTICLES

    - Introduction to Objects and Classes in C#, P...
    - Visual C#.NET, Part 1: Introduction to Progr...
    - C# - An Introduction
    - Hotmail Exposed: Access Hotmail using C#
    - Razor Sharp C#
    - Introduction to Objects and Classes in C#
    - Making Your Code CLS Compliant
    - Programming with MySQL and .NET Technologies
    - Socket Programming in C# - Part II
    - Socket Programming in C# - Part I
    - Creational Patterns in C#
    - Type Conversions
    - Creating Custom Delegates and Events in C#
    - Inheritance and Polymorphism
    - Understanding Properties in C#







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