private bool ResolveChildNamespace(ICollection <IEntity> resultingSet, string name, EntityType typesToConsider) { ReflectionNamespace childNamespace; if (Entities.IsFlagSet(typesToConsider, TypeSystem.EntityType.Namespace) && _childNamespaces.TryGetValue(name, out childNamespace)) { resultingSet.Add(childNamespace); return(true); } return(false); }
private bool ResolveType(ICollection <IEntity> resultingSet, string name, EntityType typesToConsider) { List <Type> types; if (Entities.IsFlagSet(typesToConsider, TypeSystem.EntityType.Type) && _typeLists.TryGetValue(name, out types)) { foreach (IEntity entity in EntitiesFor(types)) { resultingSet.Add(entity); } return(true); } return(false); }