Search Courses
Dates for this class:
No dates are available for this class.

Course Details    [choose new course]     [printable version]
Programming with C# (MOC2124)
Course Number: MOC2124
Category: Programming & Dev Tools
Duration: 5.00 days
Description

The goal of this course is to provide students with the knowledge and skills they need to develop C# applications for the Microsoft .NET Platform. The course focuses on C# program structure, language syntax, and implementation details.

 

C# was created to be the programming language best suited for writing enterprise applications for .NET. C# combines the high productivity of Microsoft Visual Basic with the raw power of C++. It is a simple, object-oriented, and type-safe programming language that is based on the C and C++ family of languages.
Target Audience

This course is intended for experienced developers who already have programming experience in C, C++, Visual Basic, or Java. These developers will be likely to develop enterprise business solutions.

Prerequisites
Before attending this course, students must have:
  • Experience with programming in C, C++, Visual Basic, Java, or another programming language.
  • Familiarity with the Microsoft .NET strategy as described on the Microsoft .NET Web site: http://www.microsoft.com/net/.
  • Familiarity with the .NET Framework as described on the MSDN Magazine Web site:
    • http://msdn.microsoft.com/msdnmag/issues/0900/Framework/Framework.asp
    • http://msdn.microsoft.com/msdnmag/issues/1000/Framework2/Framework2.asp
Objectives
At the end of the course, students will be able to:
  • List the major elements of the .NET Framework and explain how C# fits into the .NET Platform.
  • Analyze the basic structure of a C# application and be able to document, debug, compile, and run a simple application.
  • Create, name, and assign values to variables.
  • Use common statements to implement flow control, looping, and exception handling.
  • Create methods (functions and subroutines) that can return values and take parameters.
  • Create, initialize, and use arrays.
  • Explain the basic concepts and terminology of object-oriented programming.
  • Use common objects and reference types.
  • Create, initialize, and destroy objects in a C# application.
  • Build new C# classes from existing classes.
  • Create self-contained classes and frameworks in a C# application.
  • Define operators, use delegates, and add event specifications.
  • Implement properties and indexers.
  • Use predefined and custom attributes.
Microsoft Certification exams
There are no MCP exams associated with this course.
Outline

Module 1: Overview of the Microsoft .NET Platform

The following topics are covered in this module:

  • Introduction to the .NET Platform
  • Overview of the .NET Framework
  • Benefits of the .NET Framework
  • The .NET Framework Components
  • Languages in the .NET Framework
 
Module 2: Overview of C#
The following topics are covered in this module:
  • Structure of a C# Program
  • Basic Input/Output Operations
  • Recommended Practices
  • Compiling, Running, and Debugging
 
Module 3: Using Value-Type Variables
The following topics are covered in this module:
  • Common Type System
  • Naming Variables
  • Using Built-In Data Types
  • Creating User-Defined Data Types
  • Converting Data Types
 
Module 4: Statements and Exceptions
The following topics are covered in this module:
  • Introduction to Statements
  • Using Selection Statements
  • Using Iteration Statements
  • Using Jump Statements
  • Handling Basic Exceptions
  • Raising Exceptions
 
Module 5: Methods and Parameters
The following topics are covered in this module:
  • Using Methods
  • Using Parameters
  • Using Overloaded Methods
 
Module 6: Arrays
The following topics are covered in this module:
  • Overview of Arrays
  • Creating Arrays
  • Using Arrays
 
Module 7: Essentials of Object-Oriented Programming
The following topics are covered in this module:
  • Classes and Objects
  • Using Encapsulation
  • C# and Object Orientation
  • Defining Object-Oriented Systems
 
Module 8: Using Reference-Type Variables
The following topics are covered in this module:
  • Using Reference-Type Variables
  • Using Common Reference Types
  • The Object Hierarchy
  • Namespaces in the .NET Framework
  • Data Conversions
 
Module 9: Creating and Destroying Objects
The following topics are covered in this module:
  • Using Constructors
  • Initializing Data
  • Objects and Memory
  • Resource Managements
 
Module 10: Inheritance in C#
The following topics are covered in this module:
  • Deriving Classes
  • Implementing Methods
  • Using Sealed Classes
  • Using Interfaces
  • Using Abstract Classes
 
Module 11: Aggregation, Namespaces, and Advanced Scope
The following topics are covered in this module:
  • Using Internal Classes, Methods, and Data
  • Using Aggregation
  • Using Namespaces
  • Using Modules and Assemblies
 
Module 12: Operators and Events
The following topics are covered in this module:
  • Introduction to Operators
  • Operator Overloading
  • Creating and Using Delegates
  • Defining and Using Events
 
Module 13: Properties and Indexers
The following topics are covered in this module:
  • Using Properties
  • Using Indexers
 
Module 14: Attributes
The following topics are covered in this module:
  • Overview of Attributes
  • Defining Custom Attributes
  • Retrieving Attribute Values