Grant Winney
  • About
  • Code
  • Questions
  • Tools of the Trade

C# 12  

How to Use GetStockIcon for WinForms in .NET 8

How to Use GetStockIcon for WinForms in .NET 8

Buried deep in the list of .NET 8 improvements for WinForms is the GetStockIcon method. It gives us a way to access stock Windows icons at runtime for the OS the app is running on. Let's check it out.
Dec 18, 2024
Using Primary Constructors with Classes and Structs in C# 12 / .NET 8

Using Primary Constructors with Classes and Structs in C# 12 / .NET 8

As part of C# 12, we got a new feature called primary constructors. Let's see how they work and what we can do with them.
Dec 12, 2024
Using TimeProvider and FakeTimeProvider in WinForms

Using TimeProvider and FakeTimeProvider in WinForms

Testing .NET code involving time has always been a pain, but the TimeProvider class (backported to the .NET Framework) gives us awesome new tools.
Feb 5, 2024
How to use (and test) TimeProvider timers in .NET

How to use (and test) TimeProvider timers in .NET

Testing timers in C# is difficult, but .NET 8 (C# 12) adds an abstract TimeProvider class that makes it easier. Let's take a closer look.
Jan 10, 2024
How to use TimeProvider and FakeTimeProvider (time abstraction in .NET)

How to use TimeProvider and FakeTimeProvider (time abstraction in .NET)

Testing time in C# is difficult, but .NET 8 (C# 12) adds an abstract TimeProvider class that makes it easier. Let's take a closer look.
Jan 6, 2024
Send me new posts: *

  • Connect
  • Privacy
  • License
  • Cross-Posting
Grant Winney © 2025. Powered by Ghost