I have 2 enums with same values in them and some methods that use one enum and some methods that use the other. I want to pass one of the enum types in place of the other. For example:
public enum Colors { RED, BLUE, GREEN }
public enum ScreenColors { RED, BLUE, GREEN }
public void myFunc(Colors color) {
// Some code
}
// Want to call this as:
myFunc(ScreenColors.RED);