MOC 10266, Programming in C# 4.0 with Microsoft Visual Studio 2010

This 5 day instructor-led training class is presented by Microsoft training partners to their end customers. Channel Partners nationwide hire proven AMS Subject Matter Expert Microsoft Certified Trainers (MCT’s) to teach on-site or on-line classes.

This class is designed for people who are new to .NET 4.0. The course highlights the structure of C# 4.0 programs, language syntax, and implementation details.

This C# class provides the prerequisite C# language knowledge necessary to begin learning to build ASP.NET 4.0 and Windows applications using C#; however, students do not learn to build those applications in this course.

Goals

  • Understand the syntax of basic C# programming constructs.
  • Learn to create and call methods in a C# application.
  • Learn to catch, handle and throw exceptions.
  • Learn to perform basic file IO operations in a C# application.
  • Learn to create and use new types (enumerations, classes, and structures), and understand the differences between reference types and value types.
  • Learn to control the visibility and lifetime of members in a type.
  • Learn to use inheritance to create new reference types.
  • Learn to manage the lifetime of objects and control the use of resources.
  • Learn to define properties and indexers to encapsulate data, and define operators for this data.
  • Learn to decouple an operation from the method that implements an operation, and use these decoupled operations to handle asynchronous events.
  • Learn to use collections to aggregate data, and use Generics to implement type-safe collection classes, structures, interfaces, and methods.
  • Learn to implement custom collection classes that support enumeration.
  • Learn to query in-memory data by using LINQ.
  • Learn to integrate code written by using a dynamic language such as Ruby and Python, or technologies such as COM, into a C# application.

Outline

  1. Introducing C# and the .NET Framework
    1. Introduction to the .NET Framework
    2. Creating Projects Within Visual Studio 2010
    3. Writing a C# Application
    4. Building a Graphical Application
    5. Documenting an Application
    6. Running and Debugging Applications by Using Visual Studio 2010
    7. Lab: Introducing C# and the .NET Framework
      1. Building a Simple Console Application
      2. Building a WPF Application
      3. Verifying the Application
      4. Generating Documentation for an Application
  2. Using C# Programming Constructs
    1. Declaring Variables and Assigning Values
    2. Using Expressions and Operators
    3. Creating and Using Arrays
    4. Using Decision Statements
    5. Using Iteration Statements
    6. Lab: Using C# Programming Constructs
      1. Calculating Square Roots with Improved Accuracy
      2. Converting Integer Numeric Data to Binary
      3. Multiplying Matrices
  3. Declaring and Calling Methods
    1. Defining and Invoking Methods
    2. Specifying Optional Parameters and Output Parameters
    3. Lab: Declaring and Calling Methods
      1. Calculating the Greatest Common Divisor of Two Integers by Using Euclid’s Algorithm
      2. Calculating the GCD of Three, Four, or Five Integers
      3. Comparing the Efficiency of Two Algorithms
      4. Displaying Results Graphically
      5. Solving Simultaneous Equations (optional)
  4. Handling Exceptions
    1. Handling Exceptions
    2. Raising Exceptions
    3. Lab: Handling Exceptions
      1. Making a Method Fail-Safe
      2. Detecting an Exceptional Condition
      3. Checking for Numeric Overflow
  5. Reading and Writing Files
    1. Accessing the File System
    2. Reading and Writing Files by Using Streams
    3. Lab: Reading and Writing Files
      1. Building a Simple Editor
      2. Making the Editor XML Aware
  6. Creating New Types
    1. Creating and Using Enumerations
    2. Creating and Using Classes
    3. Creating and Using Structs
    4. Comparing References to Values
    5. Lab: Creating New Types
      1. Using Enumerations to Specify Domains
      2. Using a Struct to Model a Simple Type
      3. Using a Class to Model a More Complex Type
      4. Using a Nullable Struct
  7. Encapsulating Data and Methods
    1. Controlling Visibility of Type Members
    2. Sharing Methods and Data
    3. Lab: Encapsulating Data and Methods
      1. Hiding Data Members
      2. Using Static Members to Share Data
      3. Implementing an Extension Method
  8. Inheriting From Classes and Implementing Interfaces
    1. Using Inheritance to Define New Reference Types
    2. Defining and Implementing Interfaces
    3. Defining Abstract Classes
    4. Lab: Inheriting From Classes and Implementing Interfaces
      1. Defining an Interface
      2. Implementing an Interface
      3. Creating an Abstract Class
  9. Managing the Lifetime of Objects and Controlling Resources
    1. Introduction to Garbage Collection
    2. Managing Resources
    3. Lab: Managing the Lifetime of Objects and Controlling Resources
      1. Implementing the IDisposable Interface
      2. Managing Resources Used By an Object
  10. Encapsulating Data and Defining Overloaded Operators
    1. Creating and Using Properties
    2. Creating and Using Indexers
    3. Overloading Operators
    4. Lab: Creating and Using Properties
    5. Defining Properties in an Interface
    6. Implementing Properties in a Class
    7. Using Properties Exposed By a Class
    8. Lab: Creating and Using Indexers
      1. Implementing an Indexer to Access Bits in a Control Register
      2. Using an Indexer Exposed by a Class
      3. Lab: Overloading Operators
      4. Defining the Matrix and MatrixNotCompatible Types
      5. Implementing Operators for the Matrix Type
      6. Testing the Operators for the Matrix Type
  11. Decoupling Methods and Handling Events
    1. Declaring and Using Delegates
    2. Using Lambda Expressions
    3. Handling Events
    4. Lab: Decoupling Methods and Handling Events
      1. Raising and Handling Events
      2. Using Lambda Expressions to Specify Code
  12. Using Collections and Building Generic Types
    1. Using Collections
    2. Creating and Using Generic Types
    3. Defining Generic Interfaces and Understanding Variance
    4. Using Generic Methods and Delegates
    5. Lab: Using Collections
    6. Optimizing a Method by Caching Data
    7. Lab: Building Generic Types
      1. Defining a Generic Interface
      2. Implementing a Generic Interface
      3. Implementing a Test Harness for the BinaryTree Project
      4. Implementing a Generic Method
  13. Building and Enumerating Custom Collection Classes
    1. Implementing a Custom Collection Class
    2. Adding an Enumerator to a Custom Collection Class
    3. Lab: Building and Enumerating Custom Collection Classes
      1. Implementing the IList TItem Interface
      2. Implementing an Enumerator by Writing Code
      3. Implementing an Enumerator by Using an Iterator
  14. Using LINQ to Query Data
    1. Using the LINQ Extension Methods and Query Operators
    2. Building Dynamic LINQ Queries and Expressions
    3. Lab: Using LINQ to Query Data
      1. Using the LINQ Query Operators
      2. Building Dynamic LINQ Queries
  15. Integrating Visual C# Code with Dynamic Languages and COM Components
    1. Integrating C# Code with Ruby and Python
    2. Accessing COM Components from C#
    3. Lab: Integrating C# Code with Dynamic Languages and COM Components
      1. Integrating Code Written by Using a Dynamic Language into a C# Application
      2. Using a COM Component from Visual C# Application

To Hire an AMS Microsoft C#, Visual Studio 2010 Subject Matter Expert
Consultant and Instructor who also teaches this class, call 800-798-3901 today!

Leave a Reply