Can someone tell me if it is possible to pass different Arrays of Enum values to the same function.
Example:
I have two enums:
public enum FirstEnum
{ 
    FirstValue, 
    SecondValue
}    
public enum SecondEnum
{ 
    FirstValue, 
    SecondValue
}  
And I have two Arrays:
public FirstEnum[] first = new FirstEnum[]{ FirstEnum.FirstValue,
                                            FirstEnum.FirstValue,
                                            FirstEnum.SecondValue };
public SecondEnum[] second = new SecondEnum[]{SecondEnum.FirstValue,
                                              SecondEnum.SecondValue,
                                              SecondEnum.SecondValue }
Now I like to have a function that works with that:
public void WorkWithEnums(Enum[] myEnumValues)
{
   // ....    
}
and I like to pass my Arrays to this function like that:
WorkWithEnums(first);
WorkWithEnums(second);
But somehow it doesn't work. Also does not if I try with object[] instead of Enum[]
Any Ideas?
 
     
     
     
    