Business enum to DatContract Enum conversion in WCF
- by chugh97
I have an enum
namespace Business
{
public enum Color
{
Red,Green,Blue
}
}
namespace DataContract
{
[DataContract]
public enum Color
{
[EnumMember]
Red,
[EnumMember]
Green,
[EnumMember]
Blue
}
}
I have the same enum as a datacontract in WCF with same values.
I need to convert the Business enum to the DataContract enum using a translator.
Hoe can I achieve this?