Computing

C# Programming Course

Variables

Declaring variables and assigning values to them. A quick introduction to data types.

Declaring a variable

Procedures and Functions

Creating named blocks of code that can be used and re-used to perform specific tasks.

Declaring a variable

Variables 2

The scope of variables. Global variables and local variables.

Local variable scope

Variables 3

The scope of variables. Global variables and local variables. Passing by value and by reference.

Variables 4

The role of variables. Some of the different jobs that variables perform.

Constants

Values that don't change throughout the program.

Data Types

Some of the different types commonly used in C#.

Records and Fields

Using the C# struct to group related variables.

Enumerations

Making code more readable and restricting method arguments.

Selection

Making decisions using if, else, switch and case.

Repetition

Executing statements and blocks of code multiple times, using for, foreach, while and do...while loops.

String Methods

Accessing elements, searching, transforming, adding to and removing from strings.

Text Files

Writing to and reading from text files.

Searching and Sorting

Linear search and bubble sort.

Validation, Errors and Testing

Validation checks, types of errors and testing strategies.

Other Topics

Extended Examples

The best way to learn to program is to program! Follow these extended examples, actually entering the code into Visual C# Express, and see how the programs evolve. Make sure you understand how they work. Try changing parts of the code to see what happens. Can you extend and improve the programs? Keep asking for help with any parts you don't understand.

Flash Demos and Quizzes

These are Flash swf files. They walk through some simple examples. Some will have interactive quiz elements.

Video Tutorials

These are Quicktime movies, walking through examples in Visual Studio. Broadband required!

Windows Forms Projects

C# Homework and Tests with Answers

Databases

DofE Training Nat Theatre DofE Training DofE Training DofE Training Nat Theatre