409. C# Programming
Exercises
Rev. 1.4
An important part of Microsoft’s .NET technology is a new language,
C#. This new language combines the power of C++ and the ease of development of
Visual Basic. It bears a striking resemblance to Java and improves on that
language. C# may well become the dominant language for building applications on
Microsoft platforms.
Learning a programming language is much like learning any other
skill. It requires lots of practice! This set of 117 programming exercises in
C# provides the programmer with the opportunity to practice C# coding skills.
It progresses from the simplest program constructs through the most
sophisticated features of the language. The exercises also include a ten-step
case study, which can be progressively developed. Solutions are provided for all the programming exercises.
While especially valuable for the new programmer, these exercises
can also be helpful for more experienced programmers, who can go directly to
areas where they would like a little reinforcement of their understanding. The
exercises can be an active aid in reviewing C# prior to study of topics in the
.NET Framework.
Related learning materials include the book Introduction
to C# Using .NET, published by Prentice-Hall, and the 5-day industrial
course 410,
Object-Oriented Programming in C#, available from Object Innovations.
.NET Framework
First C# Programs
Visual Studio .NET
Simple Data Types
Operators and Expressions
Control Structures
Classes
The C# Type System
Methods, Properties and Operators
Characters and Strings
Arrays and Indexers
Inheritance
Virtual Methods and Polymorphism
Formatting and Conversion
Exceptions
Interfaces
Interfaces and the .NET Framework
Delegates and Events
Advanced Features
Components and Assemblies
Introduction to Windows Forms
Case Study: The Electronic Commerce Game