Boo.Lang.Compiler.Steps.ProcessMethodBodies.IsValidEnumOperand C# (CSharp) Method

IsValidEnumOperand() private method

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