Subscribe to Newsletter

Print

C# 4.0 Training Course


(This course is offered only on-demand to a private batch and can be customized as per the business requirements)

Overview

C# 4.0 training course teaches participants to program in C# 4.0 using Visual C# 2010.

Objectives

At the end of C# 4.0 Training course, participants will be able to:

  • Convert a variable from one data type to another
  • Work with dates and times
  • Repeat blocks of code using looping statements
  • Generate and test your own classes using the Class Designer and Object Test Bench tools
  • Use methods in your classes
  • Control how derived classes inherit from base classes
  • Create classes containing arrays, adding support for indexers and enumerators
  • Use delegate types to provide flexibility and type safety
  • Create generic classes and methods
  • Use Exception objects to determine what error has occurred
  • Create your own custom collection classes
  • Use anonymous types, lambda expressions, extension methods, object initializers, and implicit type declarations

Suggested Audience - This course is intended for developers who will use C# to write .NET Framework applications and who are new to the C# programming language. This includes those currently working with Visual Basic 6.0, C++ or Java

Duration - 2 Days

Prerequisites - All participants should have prior full-time programming experience.

Syllabus

1. Getting started
  • Learn the advantages and architecture of the .NET Framework
  • Setup a development profile in Visual Studio .NET
  • View the code that Visual Studio generates and understand what it does
2.The Page Class and Other Files
  • Know the three architectures of ASP.NET Web pages
  • Work with members of the Page class
  • The Page class events
  • Explore the single-file and code-behind models
  • The ASP.NET directives (Page, Control, and so on)
  • Investigate the ASP.NET folders
  • The Request and Response objects
  • The IsPostback and IsCrossPagePostback properties
  • Understand the basics of Web.config
  • Perform debugging and tracing
  • Introducing Web Site Administration Tool (WAT)
  • Research the global.asax file
  • Trapping application errors
3. Data Types and Variables
  • Understand how to create variables and assign values
  • Explore operators and see how they can be used to change values and compare expressions
4. Using the .NET Framework
  • Using .NET Framework classes
  • Explore basic file IO operations
  • Learn how to work with strings
5. Branching and Flow Control
  • Making choices using conditional statements
  • Manage flow control using branching statements
  • Break out of loops when necessary
6. Classes and Objects
  • Investigate .NET Framework classes to see how you can consume classes in your code
  • Learn about properties, methods, and fields
  • Create instances of classes using class constructors
  • Investigate class details, including reference vs. value types, and more
7. Properties and Methods
  • Explore how to use properties in your classes
  • Learn to control how property values are set and retrieved
  • Understand how to pass arguments to methods
  • Learn how to return both simple and complex data types from methods
8. Object-Oriented Techniques
  • Understand how derived classes inherit from base classes
  • Explore how to add and modify members in derived classes
  • Understand how to create and use interfaces
  • Explore techniques for organizing your classes
9. Working with Arrays
  • Create and initialize arrays
  • Work with array methods and properties
  • Investigate arrays in the .NET Framework
  • Learn techniques for sorting arrays
10. Delegates and Events
  • Learn different ways to work with delegates
  • Introduce anonymous delegates
  • Learn how delegates and events are related
  • Investigate events and event handlers
11. Generics
  • Understand the advantages and benefits of generics
  • Explore the use of generics to sort and search in arrays
  • See how to use generic interfaces and constraints
  • Explore the generic List class
12. Handling Exceptions
  • Learn to use try/catch blocks to handle runtime errors
  • Throw exceptions back to procedure callers
  • Use the finally block to run code unconditionally
  • Create and handle user-defined exceptions
13. Collection Classes
  • Investigate the collection interfaces in the System.Collections.Generic namespace
  • Create dynamically sized arrays using the List class
  • Investigate the generic SortedDictionary, SortedList, Stack, and Queue classes
14. LINQ
  • Motivate the need for LINQ
  • Learn about the various LINQ providers
  • Investigate simple LINQ to Objects, LINQ to SQL, and LINQ to XML samples
15. Conclusion