bool IsValidEnumOperand(IType expected, IType actual) { if (expected == actual) return true; if (actual.IsEnum) return true; return TypeSystemServices.IsIntegerNumber(actual); }