C Sharp/Overview

From Meshplex

Jump to: navigation, search
Image:Csharp_programming.gif

Main Home

Basics
C# Tutorial Home
C# - Introduction to Visual Studio IDE
Introduction to C#
C# - Overview

C# - Statements
C# - Data Types
C# - Variables
C# - Operators
C# - Flow Control
C# - Variables II
C# - Functions and Methods
C# - Classes and Objects I
C# - Enumerations
C# - Dates and Times
C# - Random Numbers

Advanced
C# - Inheritance
C# - Polymorphism
C# - Garbage Collection
C# - Operator Overloading
C# - Encapsulation
C# - Properties
C# - Indexers
C# - Exceptions
C# - GUI
C# - Delegates
C# - Events
C# - Components
C# - Multithreading
C# - Regular Expressions
C# - Graphics and Multimedia
C# - Files and Streams
C# - XML
C# - Database, SQL and ADO.NET
C# - ASP.NET Web Forms and Web Controls
C# - Web Services
C# - Network Programming
C# - Datastructures and Collections
C# - Enumerations and Iterators
C# - .NET Assemblies
C# - CLR
C# - Visual Studio Debugger
C# - Namespaces
C# - Generics
C# - MS Intermediate Language
C# - Deploying Windows Application

Contents

[edit] C# Hello World Program

The hello world program is the smallest and simplest program that you can write in any language. The hello world program will start with an entry point then the actual code to execute then followed by the exit. Not only is this in the hello world program it is required by all C# programs. The tutorial will dissect every line of code to make sure it is understood. Every line is a required part, and if ommitted, the program will not work.

Some parts of the Hello World program simply cannot be explained until later in this tutorial. Just remember they are needed to make the program work.

[edit] C# Keywords

C# has many keywords or reserved words that you must not use to store your own variables. If you decide to purchase the Visual Studio all keywords will be colored blue. Just remember not to use these words to store your own values. These keywords perform a certain task.

The tutorial will explain how to deal with C# keywords in greater detail later.

[edit] C# Blocks

This section will explain how to begin and end certain sections of your program. Without blocks of code it would be almost impossible to decipher what's going on in a certain section of code.

Blocks can also be nested, so pay close attention to this section.

[edit] Write

This section will instruct how to write text to the screen. It is very important to see the output of our program can also serve as a good tool for debugging your program.

Also, this section teaches you how to take input from from a user.

[edit] C# Comments

I cannot tell you enough how important commenting your code is. If you ever start writing your program you will forget what certain sections of your code do. You can easily remind yourself what a certain piece of code does by inserting comments in your program. Comments are often seen as tedious and a waste of time but the best developers use them extensively, and the worst developers do not use them at all.