The C# Programming Language — A 5 day course
Please Note: This course is now based on .NET 4.5/C# 5.0 and Visual Studio 2013
Microsoft's .NET Framework presents developers with unprecedented opportunities. From web applications to desktop and mobile platform applications - all can be built with equal ease, using substantially the same skill-set. But to make the most of this potential, developers must have a thorough grasp of core language skills and OO programming concepts.
This course concentrates on the C# programming language itself, to prepare delegates fully in readiness for exploring the .NET Framework. No Object-Orientated knowledge is assumed - the course provides a suitable OO primer. From basic procedural syntax to sophisticated object-oriented programming techniques, delegates will learn how to write .NET applications with code that is robust and maintainable.
The course is presented as a mixture of lectures, demos and hands-on exercises. Practical sessions follow all main topics, designed to reinforce the points covered. Additional information is provided in appendices to extend the learning experience after the course has been completed.
At the end of this course you will be able to:
- Write code that includes sequence, selection and iteration constructs
- Create and use classes and structures (types), including fields, properties and methods
- Use private, internal, protected and public visibility modifiers
- Use exception-handling to create robust applications
- Create derived classes that inherit from custom-written or .NET Framework classes
- Create interfaces and apply techniques of polymorphism effectively and appropriately
- Work with generic types
- Leverage the power of C# features
- Use delegates
- Understand the event handling paradigm
- Use lambda expressions in C# code
- Use LINQ (Language Integrated Query)
- Efficiently manage resources
Introduction to Object Orientation
- This ensures all delegates have a grounding in the principles of Object Orientation.
OO and C Sharp
- Get started on how C# implements Object Orientation
Introduction to .NET Visual Studio & C#
- The .NET Framework; The Common Language Runtime
- The Common Type System
- C# Features
- Introduction to namespaces and assemblies
- Get to know your way around Visual Studio
- Procedures and statements
- Data types
- Declaring variables; Assignments
- Conversion; Arithmetic and other operators
- Flow of control constructs
- Passing parameters by value, by reference, named and optional parameters
- Type concepts
- Reference types
- Fields, properties and methods
- Accessibility modifiers
- Object initialisation, Constructors and Constructor chaining
- Instance members
- Keyword 'this'
- The 'null' reference
- const & readonly
- Enumerated types
- Generic Collections
- Iterating collections
Inheritance & Polymorphism
- Concept of inheritance; Substitutability
- Extending a simple class
- 'virtual', 'override' and 'sealed' modifiers
- Abstract classes
- Upcasting and safe downcasting
- Polymorphism with interfaces
- Multiple interfaces
Delegates and Lambdas
- Delegates explained
- Working with delegates
- Creating your own delegate types
- The evolution of Lambdas from anonymous delegates
- Using the framework-supplied generic delegates
- The language features behind LINQ
- The LINQ API and query pattern
- Grouping and Joins
- Errors vs. Exceptions
- The 'try', 'catch', 'finally' paradigm
- Using 'throw'
- Creating your own exceptions
- 'checked' and 'unchecked' expressions.
- Understanding events in .NET
- Writing event handlers
- The event conventions
- Raising custom events
- Garbage collection and its impact
- Finalizers; The 'Dispose' pattern; IDisposable
- The 'using' statement
- At the end of the course we reverse-engineer the resultant code and compare the results to the Class Diagram we produced near the beginning of the course.
Appendix - LINQ to Xml
- Producing and consuming XML using LINQ
Publicly scheduled dates, locations, and prices
A schedule of dates for this subject is not currently available. Please call 0333 210 0140 or use our contact form to enquire about places and availability.
This intensive course is intended for developers who will use C# to write .NET Framework applications and who are relatively new to the C# programming language.
Delegates must understand the fundamentals of programming
The course provides a starting point for delegates wishing to undertake Microsoft exam 70-483 - Programming in C# although further study is likely to be required before sitting the exam.