J
Jure Bogataj
Hi all!
I have two enumerations:
public enum MyEnum1
and
public enum MyEnum2
I want to create function that accepts parameter as member of either
enumeration. Is this at all possible?
Something like:
public void MyFunc(EnumBase myEnumValue)
{
}
Or is there some other way to accomplish this. Actually I have arround 10
enums and I don't want to create separate functions since the logic is the
same?
Maybe I can accomplish something through System.Enum?
Best regards,
Jure
I have two enumerations:
public enum MyEnum1
and
public enum MyEnum2
I want to create function that accepts parameter as member of either
enumeration. Is this at all possible?
Something like:
public void MyFunc(EnumBase myEnumValue)
{
}
Or is there some other way to accomplish this. Actually I have arround 10
enums and I don't want to create separate functions since the logic is the
same?
Maybe I can accomplish something through System.Enum?
Best regards,
Jure