79378080

Date: 2025-01-22 14:25:39
Score: 0.5
Natty:
Report link

You should be able to create extension methods to convert from one enum to another:

public static class EnumExtensions
{
    public static EnumB ToEnumBValue(this EnumA enumA)
    {
        // do conversion here
    }
}

and then use it like that:

EnumB enumB = enumA.ToEnumBValue();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: d4zed