Boo.Lang.Compiler.TypeSystem.TypeSystemServices.CanBeReachedFrom C# (CSharp) Method

CanBeReachedFrom() public method

public CanBeReachedFrom ( IType expectedType, IType actualType, bool considerExplicitConversionOperators, bool &byDowncast ) : bool
expectedType IType
actualType IType
considerExplicitConversionOperators bool
byDowncast bool
return bool
        public bool CanBeReachedFrom(IType expectedType, IType actualType, bool considerExplicitConversionOperators, out bool byDowncast)
        {
            byDowncast = false;
            return IsAssignableFrom(expectedType, actualType)
                   || CanBeReachedByPromotion(expectedType, actualType)
                   || FindImplicitConversionOperator(actualType, expectedType) != null
                   || (considerExplicitConversionOperators && FindExplicitConversionOperator(actualType, expectedType) != null)
                   || (byDowncast = DowncastPermissions().CanBeReachedByDowncast(expectedType, actualType));
        }

Same methods

TypeSystemServices::CanBeReachedFrom ( IType expectedType, IType actualType ) : bool
TypeSystemServices::CanBeReachedFrom ( IType expectedType, IType actualType, bool &byDowncast ) : bool
TypeSystemServices