What's the correct way of retrieving my custom enumeration classes by their value?
问题 I've created my own custom pseudo enumerations within my domain model to allow me to have some more verbose values. For example, my class is as follows: public abstract class Enumeration<X, Y> : IComparable where X : IComparable { public Enumeration(X value, Y displayName) { } public Y DisplayName { get { return _displayName; } } public X Value { get { return _value; } } } And a class that inherits it would be: public class JobType : Enumeration<string, string> { public static JobType