Despite the article about the evilness of enumerations from my fellow blog writer I want to quickly show you a trick how one enumeration can be converted into another by using an extension method.
Converting one enumeration to another
C
Despite the article about the evilness of enumerations from my fellow blog writer I want to quickly show you a trick how one enumeration can be converted into another by using an extension method.
In C# the class Enum is often used. Some geek’s argue that the Enum’s “improve code clarity and and reduce the probability of invalid values. … Enum’s are self-documenting.
Enum’s should be used with caution, since some things are not straight-forward. The following article will show you where to be cautious.