C# 4.0 Training Overview
Accelebrate's C# 4.0 training course teaches attendees to program in C# 4.0 using Visual C# 2010.
Location and Pricing
Most Accelebrate courses are delivered as private, customized, on-site training at our clients' locations worldwide for groups of 3 or more attendees and are custom tailored to their specific needs. Please visit our client list to see organizations for whom we have delivered private in-house training. These courses can also be delivered as live, private online classes for groups that are geographically dispersed or wish to save on the instructor's or students' travel expenses. To receive a customized proposal and price quote for private training at your site or online, please contact us.
In addition, some courses are available as live, online classes for individuals. See a schedule of online courses.
C# 4.0 Training Prerequisites
Attendees should have prior full-time programming experience.
This C# 4.0 with Visual C# 2010 training class is 70% hands-on, 30% lecture, with the longest lecture segments lasting for 15 minutes.
C# 4.0 Training Materials
All attendees receive comprehensive courseware and a copy of APress's Pro C# 2010 and the .NET Platform.
Software Needed on Each Student PC
- Windows XP, Vista, or 7 with at least 3 GB RAM
- Visual Studio 2010 (full installation)
- Additional lab files that we will provide
C# 4.0 Training Objectives
- Learn the fundamentals of C# 2010 programming in Visual C# 2010.
- 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.
C# 4.0 Training Outline
- 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
- 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
- Using the .NET Framework
- Using .NET Framework classes
- Explore basic file IO operations
- Learn how to work with strings
- Branching and Flow Control
- Making choices using conditional statements
- Manage flow control using branching statements
- Break out of loops when necessary
- 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
- 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
- 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
- Working with Arrays
- Create and initialize arrays
- Work with array methods and properties
- Investigate arrays in the .NET Framework
- Learn techniques for sorting arrays
- 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
- 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
- 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
- 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
- Motivate the need for LINQ
- Learn about the various LINQ providers
- Investigate simple LINQ to Objects, LINQ to SQL, and LINQ to XML samples