Brandy.Web.EmbeddedResourceVirtualPathProvider.RemoveNamespaceMapping C# (CSharp) Method

RemoveNamespaceMapping() public method

public RemoveNamespaceMapping ( string path ) : void
path string
return void
        public void RemoveNamespaceMapping(string path)
        {
            if (!NamespaceMappings.Remove(path))
            {
                return;
            }

            foreach (var item in (from key in cache.Keys
                                  where key.StartsWith(path)
                                  select key))
            {
                NestedVirtualFile value;
                if (cache.TryRemove(item, out value) && value != null)
                {
                    value.Dependency.Removed();
                }
            }
        }