1
Vote

Mapping Enum to another Enum

description

If you try to directly map an Enum to another Enum, a exception is throwed.
For reasons of time, I could not debug and analyze the source code to see where the problem occurs. The workaround, was to create an extension that checks if the type being converted is an Enum.
var enumSrc = EnumSource.One;
var enumResult = enumSrc.Map(new EnumDest()); //Map is a extension to encapsulate TypeAdapter mapping

comments