Skip to main content

Instructor-led training

.NET Framework Using C# Training in Pasco, Washington

This four-day course is designed to provide a sound introduction to the .NET Framework for programmers who already know the C# language and the fundamentals of Windows Forms.

What you'll learn

This four-day course is designed to provide a sound introduction to the .NET Framework for programmers who already know the C# language and the fundamentals of Windows Forms. It is current to Visual Studio 2019, which now includes support for cross-platform development using .NET Core. The course focuses on core portions of the .NET Framework that are common across many application areas. Separate courses are available in specific areas, such as ADO.NET, XML Programming, Windows Presentation Framework, Windows Communications Framework and ASP.NET.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Pasco, Washington 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 Training

Prerequisites

The student should be an experienced application developer or architect with a working knowledge of C#, including building simple GUIs with Windows Forms.

Course Outline

1 .NET Fundamentals

  • What is Microsoft .NET?
  • Common Language Runtime
  • CLR Serialization
  • Attribute-Based Programming
  • Interface-Based Programming
  • Metadata
  • Common Type System
  • Framework Class Library
  • Language Interoperability
  • Managed Code
  • Assemblies and Deployment
  • Web Services
  • ASP.NET
  • Performance
  • .NET Native
  • .NET Core and Cross-platform Development
  • XML Serialization

2. Class Libraries

  • Components in .NET
  • Building Class Libraries at the Command Line
  • Class Libraries Using Visual Studio
  • Using References

3. Assemblies, Deployment and Configuration

  • Assemblies
  • Private Assembly Deployment
  • Shared Assembly Deployment
  • Configuration Overview
  • Configuration Files
  • Programmatic Access to Configuration
  • Using SDK Tools for Signing and Deployment
  • Application Settings

4. Metadata and Reflection

  • Metadata
  • Reflection
  • Late Binding

5. I/O and Serialization

  • Directories
  • Files
  • Serialization
  • Attributes

6 .NET Programming Model

  • Memory Management and Garbage Collection
  • Asynchronous Delegates
  • BackgroundWorker
  • Application Domains

7 .NET Threading

  • Threading Fundamentals
  • ThreadPool
  • Foreground and Background Threads
  • Synchronization
  • Task Parallel Library

8 .NET Security

  • Authentication and Authorization
  • Code Access Security
  • Sandboxing
  • Permissions
  • Role-Based Security
  • Principals and Identities

9. Interoperating with COM and Win32

  • .NET Client Calling a COM Server
  • 64-bit System Considerations
  • PInvoke

10 .NET and LINQ

  • ADO.NET Overview
  • .NET Data Providers
  • Connections
  • Using LocalDB
  • Commands
  • DataReaders and Connected Access
  • Data Sets and Disconnected Access
  • Language Integrated Query

11. Debugging Fundamentals

  • Compile-time Errors and Run-time Errors
  • Configuring Debug, Release, and Special Builds
  • Visual Studio Debugger
  • Just-In-Time Debugging
  • Attaching Debugger to a Running Process

12. Tracing

  • Tracing
  • Event Logs

13. More About Tracing

  • Using the BooleanSwitch and TraceSwitch Classes
  • Print Debugging Information with the Debug Class
  • Instrumenting Release Builds with the Trace Class
  • Using Listeners
  • Implementing Custom Listeners

Appendix A:  .NET Remoting

  • Marshal by Value
  • Marshal by Reference
  • .NET Remoting

Where the difficulty lies in the .NET Framework class libraries

Developers who already write C# often find that the hard parts of this course are behaviors the runtime handles without being asked. The syllabus moves from how code is packaged, through how the runtime inspects and runs it, to how it is secured, diagnosed and connected to older code.

  • Packaging decides runtime behavior. Chapters 2 and 3 cover class libraries, references, private versus shared assembly deployment, signing with SDK tools, configuration files and application settings. A common mistake is to treat these as build details. Which assembly gets loaded, and which configuration it reads, determines how the program behaves in deployment.
  • Metadata makes late binding possible. Reflection and late binding (chapter 4) depend on the metadata and attribute-based programming introduced in chapter 1. Serialization in chapter 5 uses the same machinery.
  • Memory and threads need a mental model. Chapter 6 covers garbage collection, asynchronous delegates, BackgroundWorker and application domains. Chapter 7 covers the ThreadPool, foreground and background threads, synchronization and the Task Parallel Library. A frequent misconception is that a background thread or a pooled task makes code safe or fast by itself. Shared state still needs synchronization, and a foreground thread can keep a process alive.
  • Security is a vocabulary to learn. Chapter 8 separates authentication from authorization and distinguishes principals from identities. It also covers permissions, sandboxing and Code Access Security.
  • Interop crosses a boundary. Calling a COM server or using PInvoke (chapter 9) brings in 64-bit considerations, where a signature that works in one setting can fail in another.
  • Diagnostics ties it together. Chapters 11 to 13 cover debug and release builds, attaching the debugger to a running process, trace switches, listeners and custom listeners. These are the tools for confirming what the earlier chapters made you assume.

The course uses Visual Studio 2019, which is in extended support until April 2029. The syllabus also includes a short .NET Core and cross-platform overview in chapter 1. Chapter 10 pairs an ADO.NET overview with LINQ, and an appendix covers .NET Remoting.

Who it suits and what to take around it

The course is a general-level class for experienced application developers and architects. They should already know C# and have built simple Windows Forms interfaces. It suits teams that build, maintain or migrate existing .NET applications and need a shared understanding of the runtime and class library.

If C# itself is still new, C# and .NET Essentials, Rev. 8.0 is a five-day introductory course that builds the language foundation this course assumes.

Chapter 10 gives only an overview of connections, commands, DataReaders and data sets. ADO .NET Using C# goes deeper into data access. For web work, the description points to separate ASP.NET courses, and ASP.NET Core MVC (VS2022) is a natural next step for building on the shared runtime knowledge covered here.

Organizations on other versions can ask about private training tailored to the versions they use. The wider .NET learning guide shows the surrounding courses.

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.

  • A slow desktop screen. A team might maintain a Windows Forms application that freezes while it loads data. The material on BackgroundWorker, asynchronous delegates, the ThreadPool, synchronization and the Task Parallel Library covers moving that work off the UI thread and protecting shared state.
  • A legacy component in a new service. A developer might need to call an existing COM server or a Win32 function from managed code. The COM client, PInvoke and 64-bit topics cover that boundary. The assembly and configuration chapters cover how the interop assembly is referenced and deployed.
  • A release-build problem. An application might misbehave only in production, where a full debugging session is not available. The Trace class, BooleanSwitch and TraceSwitch, listeners, event logs and attaching the debugger to a running process cover ways to collect evidence without rebuilding from scratch.

Using AI coding assistants with these topics

AI coding assistants can quickly draft boilerplate such as file and directory handling, simple serialization, configuration readers, LINQ queries and the first version of a PInvoke declaration. They save the most time when you already know what correct output looks like.

They tend to fail where the syllabus is hardest:

  • Threading and synchronization. Generated code can look reasonable yet race, deadlock or update the UI from the wrong thread. Review every shared variable and every lock.
  • Interop signatures. A PInvoke or COM declaration can compile and still mis-marshal data or break on a 64-bit process. Test in each target bitness.
  • Security and framework APIs. Suggestions about Code Access Security, permissions or Remoting may mix in APIs that do not exist in the framework you target. Compile against your actual target and read the documentation for that version.
  • LINQ and data access. Check deferred execution and that connections and readers are closed and disposed.

To verify, build in both Debug and Release configurations and step through suspect code in the Visual Studio debugger. Use trace switches and listeners to confirm what runs in a Release build. Write tests for the cases that matter, such as concurrent access, missing configuration values and a failed assembly load.

Frequently asked questions

What level is this course, and what should I know first?

It is a general-level, four-day course. You should be an experienced application developer or architect with a working knowledge of C#, including simple Windows Forms GUIs.

What does the course cover?

Topics include class libraries, assemblies, deployment and configuration, reflection, I/O and serialization, garbage collection, threading and the Task Parallel Library, and security. It also covers COM and Win32 interoperability, an ADO.NET and LINQ overview, debugging, and tracing. An appendix covers .NET Remoting.

Does it go deep on ADO.NET, ASP.NET or WPF?

No. These areas get introductory or overview treatment, and separate courses address them. The ADO.NET and LINQ chapter is an overview, and ADO .NET Using C# covers data access in depth.

Can the course be delivered privately, onsite or online?

Yes. HSG delivers private training for organizations at the client's location or live online.

Can the content be customized?

Private training can be tailored, including to the technology versions an organization uses. Use the training proposal request to describe your environment and goals.

Training locations

.NET Framework Using C# training across the U.S. and beyond.

We provide private .NET Framework Using C# training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all .NET Framework Using 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
Request Group Training

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.