A prettier way to use Enums
I think we have all struggled with using Enums with Linq, most especially when trying to plug them into your results. A far better approach is to decorate your classes with them. Let me explain We start by declaring a typical Enum class - something like this. public enum OrderStatus { /// <summary> /// Pending /// </summary> Pending = 10, /// <summary> /// Processing /// </summary> Processing = 20, /// <summary> /// Complete /// </summary> Complete = 30, /// <summary> /// Cancelled ...