public bool Resolve(List targetList, string name, EntityType filter)
{
// Resolve name using definition, and then map the matching members
List definitionMatches = new List();
if (_definition.Resolve(definitionMatches, name, filter))
{
foreach (IEntity match in definitionMatches)
{
if(GenericMapping.EntityNeedsMapping(match))
{
targetList.AddUnique(GenericMapping.Map(match));
}
else
{
targetList.AddUnique(match);
}
}
return true;
}
return false;
}