AhmedTarekHasan / MappingDifferentEnumsToEachOther

Converting an Enum to Another In .NET C#

Home Page:https://www.developmentsimplyput.com/post/converting-an-enum-to-another-in-net-c

Repository from Github https://github.comAhmedTarekHasan/MappingDifferentEnumsToEachOtherRepository from Github https://github.comAhmedTarekHasan/MappingDifferentEnumsToEachOther

Converting an Enum to Another In .NET C#

Guide on how to convert an Enum to another in .NET C#


While working on your software system you might find yourself dealing with different modules and some of these modules could be out of your full control.

This could happen for different reasons, may be due to some access restrictions, ownership, policy,…

In this kind of situations, you might face some challenges related to mapping different entities, classes, interfaces, enums,… to each other. It would not be a ship-stopper, but still you have to handle this in the best possible way.

In this article, we would explain more than one way to handle mapping different Enums to each other.


If you are interested into reading more about this topic, you can read the rest of the article.


If you want to support me:

▶ Subscribe to Medium using my referral link
▶ Subscribe to Medium Newsletter
▶ Subscribe to LinkedIn Newsletter
▶ Follow me on Medium
▶ Follow me on Twitter
▶ Follow me on LinkedIn


Authors:

About

Converting an Enum to Another In .NET C#

https://www.developmentsimplyput.com/post/converting-an-enum-to-another-in-net-c


Languages

Language:C# 100.0%