Category: C#

LEGACY: Manipulate Threads with System.Threading

Legacy System Threading Using an older .NET framework? Check out these system.threading tips to directly manipulate threads without the task abstraction. While writing the 7th edition of Essential C# 8.0, I realized that it was time to pull out the content on system.threading- focusing instead on Parallel Extensions (System.Threading.Tasks). Parallel Extensions is generally preferred because […]

Microsoft Development Technologies Demystified

Crash Courses in Current Development Technologies Watch our free videos for a crash course on current development technologies. Mark Michaelis speaks at IntelliTect’s recent Visual Studio 2019 event. Last month, we held an event to provide updates and training on the latest development technologies from Microsoft. We’d like to share the content. Click the links […]

Decoupling: Making Your C# Program More Testable

How and Why to Implement Decoupling Classes in Your Code Estimated reading time: 9 minutes Decoupling is a strategy for writing testable code when dealing with hard-to-test classes, and it can be an incredibly powerful tool to help you write clean, effective, and bug-free code. Contents How and Why to Implement Decoupling Classes in Your […]

Material Design in XAML – How to Make Sense of the DialogHost

Material Design in XAML Material Design In XAML (MDIX) is a beautiful theme library that brings Google’s Material Design to your Windows Presentation Framework (WPF) applications. In this tutorial, we look at the XAML Dialog Host, one of its most powerful controls. XAML Dialog Host provides a simple way to display a dialog with information […]

The ‘Elegant-Innovative-Excellence’ of C#

Why C# Should Be Part of Your Tooling Arsenal C# (pronounced C Sharp) is a language used in combination with Microsoft’s .NET framework for developing applications. “The open-sourced nature of C# and the framework that comes with it is pretty unique,” Mark Michaelis said during a recent interview on Code Chat. “What really makes C# […]

5 Steps to Getting Started With Material Design In XAML

Add Aesthetically Appealing Material Design to Your Windows Presentation Framework Applications Material Design In XAML (MDIX) is a beautiful theme library that brings Google’s Material Design to your Windows Presentation Framework (WPF) applications. In this tutorial, we look at how easy it is to get started and add some beautiful material design to your application. […]

Tuple Trouble: Why C# Tuples Get to Break Guidelines

Trouble With Tuples Back in the August 2017 issue of MSDN Magazine I wrote an in-depth article on C# 7.0 and its support for tuples (msdn.com/magazine/mt493248). At the time I glossed over the fact that the tuple type introduced with C# 7.0 (internally of type ValueTuple<…>) breaks several guidelines of a well-structured value type, namely: […]