C# 4
  C# 4 Programming Language
C# 4 Programming Language

C# is an international standard programming language used to create instructions that direct the computer about what to do, when to do it, and how to do something.

C# 4 is the new version of the C# computer language.

This web site is dedicated to C#, providing lessons, tutorials, and topics on various issues.

To follow the lessons on this site, you must use at least the csc compiler, which you get from having the .NET Framework installed in your computer. The best way is to use either Microsoft Visual C# 2010 Express, which is free, or Microsoft Visual Studio 2010.

Enjoy.

C# Fundamentals

 Fundamentals

01:: Introduction to MS Visual Studio
02:: Introduction to C# Projects
03:: Introduction to Values of a Program
04:: Extended Values
05:: Operators and Operands

 Classes

06:: Introduction to Classes
07:: Introduction to Methods of a Class
08:: Passing Arguments to a Method
09:: Class Construction

 Language Accessories

10:: Namespaces
11:: Libraries
12:: Staticity
13:: Mathematic Functions
14:: Data Reading and Formatting
15:: Combinations of Classes

 Logic and Conditions

16:: Introduction to Cconditions
17:: Conditional Statements
18:: Conditional Switches
19:: Counting and Looping
20:: Methods and Conditional Statements

 Fundamentals

Fundamentals C# Fundamentals
 
 
 
 
|  |
 

 Classes

Classes Object Oriented Programming
  #Nesting a Class
  #The Properties of a Class
  #Inheritance
  #Abstract Classes
#Partial Class Implementation #Interfaces #Sealed Classes
 

 Arrays

Section #Introduction to Arrays #The Array Class
#Arrays of Primitive Types #Strings
#Arrays of Class Types  
#Mutltidimensional Arrays #Introduction to Indexers
#Jagged Arrays #Indexers and Classes
 

 Libraries

Section Built-In and Custom Libraries
Nesting Conditional StatementsIntroduction to Custom Libraries
Nesting Conditional StatementsIntroduction to Built-in Libraries
Nesting Conditional StatementsUsing the Visual Basic Library
Nesting Conditional StatementsInteroperability (Using Win32 or C++/CLI Libraries)
 

 Topics

Section #The Main() Function #Static Variables
#Enumerations #Static Methods
Nesting Conditional StatementsNamespaces #Static Classes
#Recursion #Structures
#Operator Overloading  
 

Language Integrated Query (LINQ)

Introduction to LINQ Conjunction and Disjunction
Introduction to the LINQ and Class LINQ Operators
Sorting a List LINQ and the Enumerable Class
Applying Criteria LINQ and Arrays
LINQ and the String Class Grouping Records
  Joining Records
   

Enumerations Logical Operators Logical Conjunction
    Logical Disjunction
 

Built-in Classes

Libraries

Object Stack Creating a Custom Library
Random Queue Using Visual Basic Functions
Dates and Times Hash Table Using a C++/CLI Library
Array ArrayList Calling a Win32 Function

XML

Data Sets

Introduction to XML A Data Set
The Nodes of an XML Element The Tables of a Data Set
Operations on XML Elements The Columns of a Table
The Attributes of an XML Element The Records of a Table
Characteristics of XML Nodes Records Management

 

ADO

Miscellaneous

  Introduction to ADO Mathematics Functions
  ADO Databases  
 

Examples

List
An example of a list class.
Recursions

Recursion is the ability for a function to call itself. These are three examples of recursive functions that include calculations for a factorial, a permutation, and a combination.

Using an Interface to Declare a Variable

Here is an example of an interface, including a class that implements it, and creating an object from it.

Greatest Common Divisor

The greatest common divisor of two positive integers is the highest number that can divide those two other numbers. This example shows how to find the greatest common divisor of two numbers.

Rational

The rational is a number that is represented by two parts, a numerator and a denominator. Here is an example of producing a rational.

Array Resizing

This example shows how you can increase the number of items in an array if you have to add values beyond the original size.

Linked List

This is an example of a linked list, which is a technique of creating a collection of items where an item can be located based on another existing item.

IList Implementation

Here is a class used as an introduction to collections. It creates a class that implements the IList interface. It also adds some other features to the class.

Array-Based List

An array-based list is a collection of items where each item can be located using its index.

Cashier Change

This application shows how to assist the cashier of a store figure out how much change to give to a customer.

The Minimum and Maximum Values in an Array

This series of sample programs shows how to find the highest number in a series.

Finding out Whether a Word or Sentence is a Palindrome

This is an example code of finding out whether a word or sentence is a palindrome, which is a word or a sentence that reads the same way from left to right or from right to left.

Fibonacci Number
  
 
 
      

File Processing

 

Errors/Exception Handling/Debugging

 

Collections

   

Keywords

  

Built-In Classes

♦ Environment  ♦ Object ♦ Random
♦ Sign   ♦ Type
 

Built-In Interfaces

♦ IClonable ♦ IComparable ♦ IDisposable
 

.NET Framework Classes

 

Date/Time

Conditional Topics

   
 
 

Copyright © 2008-2010 C# Key Contact