Boo.Lang.Compiler.Steps.ProcessMethodBodies.IsValidEnumOperand C# (CSharp) Метод

IsValidEnumOperand() приватный Метод

private IsValidEnumOperand ( IType expected, IType actual ) : bool
expected IType
actual IType
Результат bool
        bool IsValidEnumOperand(IType expected, IType actual)
        {
            if (expected == actual) return true;
            if (actual.IsEnum) return true;
            return TypeSystemServices.IsIntegerNumber(actual);
        }
ProcessMethodBodies