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;
}