I have the following code:
public int Method(MyEnum myEnum) { switch (myEnum) { case MyEnum.Value1: return 1; case MyEnum.Val
Enums are not limited to values they represent. You can assign this:
MyEnum v = (MyEnum)1000;
And there would be no problem at all. Add a default to your switch and you'll handle all possible situations.