GetTypesForNamespace() public method

public GetTypesForNamespace ( string namespaceName ) : IEnumerable
namespaceName string
return IEnumerable
Example #1
0
        public override IEnumerable <TypeWrapper> GetTypesForNamespace(string namespaceName)
        {
            HashSet <TypeWrapper> typeSet = new HashSet <TypeWrapper>();
            IList <TypeWrapper>   namespaceTypes;

            if (this._typesByNamespace.TryGetValue(namespaceName, out namespaceTypes))
            {
                typeSet.UnionWith(namespaceTypes);
            }

            if (_deferredTypesProvider != null)
            {
                typeSet.UnionWith(_deferredTypesProvider.GetTypesForNamespace(namespaceName));
            }

            return(typeSet);
        }