I have an enum, let's call it A:
public enum A
{
A,
B
}
I have a function that takes an enum A:
public void functionA(A enumA)
{
//do something
}
How can I create another enum, possibly call B that I can pass to functionA? Something like this?
public enum B
{
C
}
functionA(B.C);
I know that you can't extend an enum, but what other options do I have available? What is the best way to achieve this?