private bool ResolveType(List targetList, string name, Dictionary<string,List<Type>> types)
{
if (types.ContainsKey(name))
{
foreach (Type type in types[name])
{
targetList.Add(_typeSystemServices.Map(type));
// Can't return right away, since we can have several types
// with the same name but different number of generic arguments.
}
return true;
}
return false;
}