Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }