Instructor-led training
Object-Oriented Programming in C# Training in Mc Henry, Illinois
Private .NET training for organizations from Hartmann Software Group, delivered onsite in Mc Henry, Illinois or live online.
What you'll learn
This thorough and comprehensive course is a practical introduction to programming in C#, utilizing the services provided by .NET. This course emphasizes the C# language. It is current to Visual Studio 2022, .NET 6 and C# 10. Important newer features such as dynamic data types, named and optional arguments, tuples, asynchronous programming keywords, nullable reference types, record types, and top-level statements are covered. Supplements provide a tutorial on Visual Studio 2022, an overview of LINQ, and coverage of unsafe code and pointers in C#.
This course is intended to be fully accessible to programmers who do not already have a strong background in object-oriented programming in C-like languages, such as C++ or Java. It is ideal, for example, for procedural programmers who desire to learn C#.
An important thrust of the course is to teach C# programming from an object-oriented perspective. It is often difficult for programmers trained originally in a procedural language to start “thinking in objects.” This course introduces object-oriented concepts early, and C# is developed in a way that leverages its object orientation. A case study is used to illustrate creating a complete system using C# and .NET. Besides supporting traditional object-oriented features, such as classes, inheritance, and polymorphism, C# introduces several additional features, such as properties, indexers, delegates, events, and interfaces that make C# a compelling language for developing object-oriented and component-based systems. This course provides thorough coverage of all these features.
C# as a language is elegant and powerful. But to utilize its capabilities fully, you need to have a good understanding of how it works with the .NET Framework. The course explores several important interactions between C# and the .NET Framework, and it includes an introduction to major classes for collections, delegates, and events. It includes a succinct introduction to creating GUI programs using Windows Forms. The course concludes with a chapter covering the newer features in the language.
Numerous programming examples and exercises are provided, including the case study. The student will receive a comprehensive set of materials, including course notes and all the programming examples.
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Mc Henry, Illinois or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
What makes object-oriented C# hard to learn
The syntax is rarely the obstacle. The hard part is learning to think in objects, and the syllabus is ordered with that in mind. It introduces objects, classes, inheritance, polymorphism and components before the language details, then builds the Bank Case Study across eight steps. Each step adds one idea to the same code base: inheritance, virtual methods, formatting, exceptions, interfaces, collections and generics.
Several topics are easy to misread:
- Value types and reference types. Boxing and unboxing, parameter passing and copy semantics (
ICloneable) all depend on this distinction. Code that looks like a harmless assignment can copy data or share it. - Hiding versus overriding. Method hiding and virtual methods with dynamic binding look alike but dispatch differently. The syllabus covers the fragile base class problem, which shows why this matters when a base class changes later.
- Interfaces versus abstract classes. Learners often treat them as interchangeable. The course covers abstract and sealed classes, programming with interfaces, using interfaces at runtime and resolving ambiguities.
- Delegates, lambdas and events. They build on one another, from delegates to anonymous methods to lambda expressions to events. They are also the foundation of the Windows Forms event handling and the LINQ supplement later in the course.
- Nullability and records. Nullable value types and nullable reference types are different mechanisms. Record types and top-level statements change how much code a program needs.
The closing chapter on newer language features (dynamic typing, named and optional arguments, generic variance, asynchronous keywords) is easier to absorb once the object model is in place.
Who this course suits and what to take next
The stated prerequisite is experience in any high-level language. The course does not assume a background in C++ or Java, so it suits procedural programmers moving to C# and developers who have used C# casually without a formal grounding in its object model. Over five days it covers data types, operators, control flow, classes, inheritance, exceptions, interfaces, collections and generics.
The course uses .NET 6, which Microsoft no longer supports (support ended November 2024), and Visual Studio 2022, which is supported. It fits organizations that maintain or migrate existing .NET 6 code. Teams working with newer .NET releases can ask for private training tailored to the versions they use through a training proposal request.
Natural next steps depend on your work:
- Developers who need the runtime behind the language can continue with Advanced .NET Framework Programming Using C#, which builds on the classes, interfaces and delegates taught here.
- Developers heading toward web applications can take ASP.NET Core MVC (VS2022) once they are comfortable with classes, properties, collections and lambdas.
The wider .NET course list shows other options.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Moving a procedural utility to C#. A team might have a set of functions that process account records. Modeling the records as classes with constructors, properties and an inheritance hierarchy, then using virtual methods and a heterogeneous collection, mirrors the structure of the Bank Case Study steps.
- Hardening error handling. A team maintaining an internal application might replace scattered error codes with user-defined exception classes and inner exceptions. Structured exception handling and interfaces then let callers handle failures consistently.
- Reading and extending existing code. A developer who inherits a codebase full of lambdas, generic collections, events and record types can use the delegates, generics and newer-features chapters to understand it. The LINQ supplement covers filtering, ordering and aggregation for the query code they find.
Using AI coding assistants with these topics
AI coding assistants are good at boilerplate: class skeletons, auto-implemented properties, constructors, ToString overrides, simple LINQ queries and unit tests. Used well, they save typing once you understand the design. They fail in predictable ways on this material.
- Design judgment. An assistant may add inheritance where an interface fits better, or hide a method with
newwhereoverridewas intended. Check each hierarchy against virtual dispatch and the fragile base class problem. - Types and copying. Generated code can box values unnecessarily, or share a reference where a copy was intended. Read parameter passing and collection handling closely.
- Exceptions. Generated code often catches a general exception and swallows it. Check that handlers are specific and that inner exceptions are preserved.
- LINQ and async. Generated queries may not run when you expect, because LINQ queries can execute lazily. Generated asynchronous code can mishandle blocking, cancellation or exceptions. This course introduces the asynchronous keywords, so treat suggestions beyond the basics as needing careful review.
- API availability. Assistants may suggest members that do not exist in the .NET version you target. Compile against that version and read the documentation for any unfamiliar API.
To verify, write a small test or console experiment for each non-trivial suggestion, step through it in the debugger covered in the Visual Studio supplement, and make sure you can explain each line.
Frequently asked questions
What level is this course?
It is a general-level, five-day introduction to C# from an object-oriented perspective. It starts with data types and control flow and moves through classes, inheritance, interfaces, generics, delegates and events.
What do I need to know beforehand?
Programming experience in a high-level language. You do not need prior C++ or Java experience, and procedural programmers are an intended audience.
Does the course cover LINQ, Windows Forms and newer language features?
Yes, at an introductory level. Windows Forms covers buttons, labels, textboxes, list boxes and event handling. LINQ is a supplement covering basic query operators. The newer-features chapter covers dynamic typing, named and optional arguments, generic variance, asynchronous keywords, nullable reference types, record types and top-level statements.
Can this be delivered privately for our team, onsite or online?
Yes. HSG delivers private training for organizations at the client's location or live online.
Can the course be customized to our .NET version or focus?
Private training can be tailored to the technology versions an organization uses, including current releases, and content can be customized. You can describe your needs in a training proposal request.Training locations
Object-Oriented Programming in C# training across the U.S. and beyond.
We provide private Object-Oriented Programming in C# training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Object-Oriented Programming in C# training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.