Microsoft.CSharp.RuntimeBinder.Semantics.AggregateSymbol.HasConversion C# (CSharp) 메소드

HasConversion() 공개 메소드

public HasConversion ( SymbolLoader pLoader ) : bool
pLoader SymbolLoader
리턴 bool
        public bool HasConversion(SymbolLoader pLoader)
        {
            pLoader.RuntimeBinderSymbolTable.AddConversionsForType(AssociatedSystemType);

            if (!_hasConversion.HasValue)
            {
                // ok, we tried defining all the conversions, and we didn't get anything
                // for this type.  However, we will still think this type has conversions
                // if it's base type has conversions.
                _hasConversion = GetBaseAgg() != null && GetBaseAgg().HasConversion(pLoader);
            }

            return _hasConversion.Value;
        }