Exception Not Found

The Fisher-Yates Shuffling Algorithm in C# (And Why It Works So Well)

I've been working on an upcoming modeling practice [https://exceptionnotfound.net/tag/modelingpractice/] blog post and I needed (once again [https://www.exceptionnotfound.net/simulating-candy-land-in-net-part-2-programming-the-game/] ) to implement a card-shuffling algorithm. As always, I turned to the trusty Fisher-Yates shuffle [https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle] to

Using AutoMapper with StructureMap in ASP.NET Web API

I'm on a "Combine These Two NuGet Packages in Web API" kick lately, so let's keep that going! We're going to set up an ASP.NET Web API project that uses AutoMapper and StructureMap [http://structuremap.github.io/] to provide us with mapping and injection-based repositories and controllers. I already

Solving Minesweeper with C# and LINQ

Anybody who's spent any time at a Windows machine in the last 26 years has probably played a few games of Minesweeper [https://en.wikipedia.org/wiki/Minesweeper_(video_game)]: I mostly work in the ASP.NET space, and I'd been wondering for a few weeks how feasible it was

Consuming Web API Custom Validation in MVC using RestSharp

Let's see how to consume a custom validation scheme in Web API using FluentValidation, RestSharp, and JSON.NET. Sample project included!

Setting Up Dependency Injection in Web API with StructureMap

Up until recently I hadn't really used any Dependency Injection (DI) [https://en.wikipedia.org/wiki/Dependency_injection] frameworks in my ASP.NET projects, largely due to them being rather intimidating to set up the first time. I mean, I barely grasp the concept of DI, so the thought of

Exception Not Found © 2026