Microsoft.CSharp.RuntimeBinder.SymbolTable.FindSymWithMatchingArity C# (CSharp) Method

FindSymWithMatchingArity() private method

private FindSymWithMatchingArity ( AggregateSymbol aggregateSymbol, Type type ) : AggregateSymbol
aggregateSymbol Microsoft.CSharp.RuntimeBinder.Semantics.AggregateSymbol
type System.Type
return Microsoft.CSharp.RuntimeBinder.Semantics.AggregateSymbol
        private AggregateSymbol FindSymWithMatchingArity(AggregateSymbol aggregateSymbol, Type type)
        {
            for (AggregateSymbol agg = aggregateSymbol;
                agg != null;
                agg = BSYMMGR.LookupNextSym(agg, agg.Parent, symbmask_t.MASK_AggregateSymbol) as AggregateSymbol)
            {
                if (agg.GetTypeVarsAll().size == type.GetGenericArguments().Length)
                {
                    return agg;
                }
            }
            return null;
        }