Is it possible to display between two different enumerations?
That is, I want to take one enum value and match it with the corresponding value in another type of enumeration.
I know how to do this with AutoMapper:
// Here how to configure... Mapper.CreateMap<EnumSourceType, EnumTargetType>(); // ...and here how to map Mapper.Map<EnumTargetType>(enumSourceValue)
But I am new to ValueInjecter and cannot understand.
** UPDATE **
The source and target enumeration types look something like this:
public enum EnumSourceType { Val1 = 0, Val2 = 1, Val3 = 2, Val4 = 4, } public enum EnumTargetType { Val1, Val2, Val3, Val4, }
So, constants have the same name but different meanings.
source share