C#
  Home arrow C# arrow Page 3 - C# - An Introduction
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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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#

C# - An Introduction
By: Michael Youssef
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 274
    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


    C# - An Introduction - Identifiers


    (Page 3 of 9 )

    Identifiers are simply names for your items.  For example, you are developing a program that contains an item which will add two numbers.  You must give this item a name in your code, so that name is also referred to as an identifier because it will identify your item.

    I will give you many examples for identifiers later when appropriate. Now we must differentiate between Keywords and Identifiers. Keywords are special words reserved by the language and Identifiers are names which you can use to call your items (I use the word ‘items’ because I am assuming you don’t know of C#’s building blocks, such as: structs, classes, methods, etc.).
    For example I can call my programming item “Michael”, which is an item that can output “Hello I like programming in C#” to the screen.  The item named “Michael” is an Identifier.  I can’t name this item “class”, “int”, or any of the words in Figure 2.1 because they are reserved by C# for special use.

    When you name your items you must apply certain rules:

    • The first character in the name must start with a letter (uppercase or lowercase) or an underscore (_).  I.e.: “_myName”
    • The characters after the first can be a digit, an underscore (_), or a letter (uppercase or lowercase)

    That’s all what you need to know for now about Keywords and Identifiers.

    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-2010 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek