by Steve Smith, Brendan Enrick, and Eric Fleming
This tutorial is aimed at people who are learning C# for the first time. No prior programming knowledge is required, but if you're coming from another language, many of the concepts will already be familiar to you and you should be able to move through the tutorial more quickly.
This tutorial will cover the following topics:
- Creating a Hello World Program
- Learning about built-in Types and Variables
- Working with Strings
- Working with Dates and Times
- Making Decisions in Your Program
- Implementing Logical Expressions
- Looping Based on a Logical Expression
- Looping a Known Number of Times
- Working with Arrays and Collections
- Looping Through Members of a Collection
- Defining and Calling Methods
- Understanding Classes and Objects
- Working with Scope and Accessibility Modifiers
- Encapsulation and Object-Oriented Design
- Understanding Namespaces
- Introducing LINQ
- When and How to use Exceptions
- Testing Your Code
- Common Patterns and Antipatterns