Choose your language:

France
Germany
Hong Kong

India
Ireland
Japan
Malaysia
Netherlands
New Zealand

Singapore

Sweden
United Kingdom
United States
Course Code

IN1410

Duration

5 Days

The participant should have programming experience in a high-level language.
This course is a practical introduction to programming in C#, utilizing the services provided by .NET. This course emphasizes the C# language. It is current to Visual Studio 2013 and .NET 4.5.1. Important newer features such as dynamic data type, named and optional arguments, the use of variance in generic interfaces, and asynchronous programming keywords are covered in a final chapter. A supplement covers the fundamentals of Language Integrated Query (LINQ).

This course is intended to be fully accessible to programmers who do not already have a strong background in object-oriented programming in C-like languages, such as C++ or Java. It is ideal, for example, for Visual Basic 6 or COBOL programmers who desire to learn C#. An important thrust of the course is to teach C# programming from an object-oriented perspective. It is often difficult for programmers trained originally in a procedural language to start “thinking in objects.” This course introduces object-oriented concepts early, and C# is developed in a way that leverages its object orientation. A case study is used to illustrate creating a complete system using C# and .NET. Besides supporting traditional object-oriented features, such as classes, inheritance, and polymorphism, C# introduces several additional features, such as properties, indexers, delegates, events, and interfaces that make C# a compelling language for developing object-oriented and component-based systems. This course provides thorough coverage of all these features.

The course includes three electronic supplements, provided as PDF files. They cover Visual Studio 2013, Language Integrated Query (LINQ), and unsafe code and the C# pointer type.
This course is designed for individuals who are developers.

Upon completion of this course, participants will be able to:

  • Acquire a working knowledge of C# programming
  • Learn how to implement programs using C# and classes from the .NET Framework 
  • Learn how to implement simple GUI programs using Windows Forms 
  • Gain a working knowledge of dynamic data type, named and optional arguments, and other new features in C# 4.0 
  • Learn how to do asynchronous programming using new keywords in C# 5.0
NET: What You Need To Know
.NET Executables and the CLR
A .NET Testbed for C# Programming
Using Visual Studio 2013

First C# Programs
Hello, World
Namespaces
Variables and Expressions
Using C# as a Calculator
Input/Output in C#
.NET Framework Class Library

Data Types in C#
Data Types
Integer Types
Floating Point Types
Decimal Type
Characters and Strings
Boolean Type
Conversions
Nullable Types

Operators and Expressions
Operator Cardinality
Arithmetic Operators
Relational Operators
Logical Operators
Bitwise Operators
Assignment Operators
Expressions
Checked and Unchecked

Control Structures
If Tests
Loops
Arrays
Foreach
More about Control Flow
Switch

Object-Oriented Programming
Objects
Classes
Inheritance
Polymorphism
Object-Oriented Languages
Components

Classes
Classes as Structured Data
Methods
Constructors and Initialization
Static Fields and Methods
Constant and Readonly

More about Types
Overview of Types in C#
Value Types
Boxing and Unboxing
Reference Types
Implicitly Typed Variables

Methods, Properties and Operators
Methods
Parameter Passing
Method Overloading
Variable-Length Parameter Lists
Properties
Auto-Implemented Properties
Operator Overloading

Characters and Strings
Characters
Strings
String Input
String Methods
StringBuilder Class
Programming with Strings

Arrays and Indexers
Arrays
System.Array
Random Number Generation
Jagged Arrays
Rectangular Arrays
Arrays as Collections
Bank Case Study—Step 1
Indexers

Inheritance
Single Inheritance
Access Control
Method Hiding
Initialization
Bank Case Study—Step 2

Virtual Methods and Polymorphism
Virtual Methods and Dynamic Binding
Method Overriding
Fragile Base Class Problem
Polymorphism
Abstract Classes
Sealed Classes
Heterogeneous Collections
Bank Case Study—Step 3

Formatting and Conversion
ToString
Format Strings
String Formatting Methods
Bank Case Study—Step 4
Type Conversions

Exceptions
Exception Fundamentals
Structured Exception Handling
User-Defined Exception Classes
Inner Exceptions
Bank Case Study—Step 5

Interfaces
Interface Fundamentals
Programming with Interfaces
Using Interfaces at Runtime
Bank Case Study—Step 6
Resolving Ambiguities

.NET Interfaces and Collections
Collections
Bank Case Study—Step 7
IEnumerable and IEnumerator
Copy Semantics and ICloneable
Comparing Objects
Generic Types
Type-Safe Collections
Object Initializers
Collection Initializers
Anonymous Types
Bank Case Study—Step 8

Delegates and Events
Delegates
Anonymous Methods
Lambda Expressions
Events

Introduction to Windows Forms
Creating Windows Applications Using Visual Studio 2013
Partial Classes
Buttons, Labels and Textboxes
Handling Events
Listbox Controls

New Features in C# 4.0 and C# 5.0
Dynamic Data Type
Named Arguments
Optional Arguments
Variance in Generic Interfaces
Asynchronous Programming Keywords

Appendix A. Learning Resources

Supplement 1. Using Visual Studio 2013
Signing in to Visual Studio
Overview of Visual Studio 2013
Creating a Console Application
Project Configurations
Debugging
Multiple-Project Solutions

Supplement 2. Language Integrated Query (LINQ)
What Is LINQ?
Basic Query Operators
Filtering
Ordering
Aggregation

Supplement 3. Unsafe Code and Pointers in C#
Unsafe Code
C# Pointer Type
Send Us a Message
First Name
*
Last Name
*
Company
*
Email
*
Address Line 1
*
Address Line 2
City
*
*
Zip Code
Telephone
*
*
Choose one
*
Comments