What you'll learn?

·     Explain the purpose of the .NET Framework, and understand how to use C# and Visual Studio 2010 to build .NET Framework applications.

·     Understand the syntax of basic C# programming constructs.

·     Create and call methods in a C# application. 

·     Catch, handle and throw exceptions.

·     Perform basic file IO operations in a C# application.

·     Create and use new types (enumerations, classes, and structures), and understand the differences between reference types and value types.

·     Control the visibility and lifetime of members in a type.

·     Use inheritance to create new reference types.

·     Manage the lifetime of objects and control the use of resources.

·     Define properties and indexers to encapsulate data, and define operators for this data.

·     Decouple an operation from the method that implements an operation, and use these decoupled operations to handle asynchronous events.

·     Use collections to aggregate data, and use Generics to implement type-safe collection classes, structures, interfaces, and methods.

·     Implement custom collection classes that support enumeration.

·     Query in-memory data by using LINQ.

·     Integrate code written by using a dynamic language such as Ruby and Python, or technologies such as COM, into a C# application

Description

The course focuses on C# program structure, language syntax, and implementation detailswith .NET Framework 4.0. This course describes the new enhancements in the C# 4.0 language by using Visual Studio 2010. In this course, lower-intermediate level programmers gain the knowledge and skills they need to develop C# applications for the Microsoft .NET Framework 4.0. The course highlights the structure of C# 4.0 programs, language syntax, and implementation details. This course is not mapped to any exam.

Audience :

This course is intended for experienced developers who already have programming experience in C, C++, Visual Basic, or Java and understand the concepts of object-oriented programming. This course is not designed for new programmers; it is targeted at professional developers with at least 12 months experience of programming in an object-oriented environment.

Topics :

Introducing C# and the .NET Framework

o  Introduction to the .NET Framework

o  Creating Projects Within Visual Studio 2010

o  Writing a C# Application

o  Building a Graphical Application

o  Documenting an Application

o  Running and Debugging Applications by Using Visual Studio 2010

Using C# Programming Constructs

o  Declaring Variables and Assigning Values

o  Using Expressions and Operators

o  Creating and Using Arrays

o  Using Decision Statements

o  Using Iteration Statements

Declaring and Calling Methods

o  Defining and Invoking Methods

o  Specifying Optional Parameters and Output Parameters

Handling Exceptions

o  Handling Exceptions

o  Raising Exceptions

Reading and Writing Files

o  Accessing the File System

o  Reading and Writing Files by Using Streams

Creating New Types

o  Creating and Using Enumerations

o  Creating and Using Classes

o  Creating and Using Structs

o  Comparing References to Values

Encapsulating Data and Methods

o  Controlling Visibility of Type Members

o  Sharing Methods and Data

Inheriting From Classes and Implementing Interfaces

o  Using Inheritance to Define New Reference Types

o  Defining and Implementing Interfaces

o  Defining Abstract Classes

Managing the Lifetime of Objects and Controlling Resources

o  Introduction to Garbage Collection

o  Managing Resources

Encapsulating Data and Defining Overloaded Operators

o  Creating and Using Properties

o  Creating and Using Indexers

o  Overloading Operators

Decoupling Methods and Handling Events

o  Declaring and Using Delegates

o  Using Lambda Expressions

o  Handling Events

Using Collections and Building Generic Types

o  Using Collections

o  Creating and Using Generic Types

o  Defining Generic Interfaces and Understanding Variance

o  Using Generic Methods and Delegates

Building and Enumerating Custom Collection Classes

o  Implementing a Custom Collection Class

o  Adding an Enumerator to a Custom Collection Class

Using LINQ to Query Data

o  Using the LINQ Extension Methods and Query Operators

o  Building Dynamic LINQ Queries and Expressions

Integrating Visual C# Code with Dynamic Languages and COM Components

o  Integrating C# Code with Ruby and Python

o  Accessing COM Components from C#

Prerequisities :

Recommended Knowledge :

Before attending this course, students must have: •At least 12 months experience working with an Object Oriented language •Have C++ or Java knowledge: ?Creating Classes ?Inheritance and Abstraction ?Polymorphism ?Interfaces ?Exceptions •Knowledge of the Visual Studio IDE.

Category :

  • Programming

Training Materials :

Microsoft Official Courseware (MOC)

Labs :

This course includes several labs to ensure you will gain the targeted skills and experience.