C# Smart Enums: escape magic number hell
The Problem: Magic Number Hell We’ve all seen code like this: if (product.StatusId == 2) { // What is 2? Pending? Deleted? Available? product.StatusName = “?”; } This is Magic Continue reading C# Smart Enums: escape magic number hell
