WriteNamespaceExplorerPrefix() public static method

public static WriteNamespaceExplorerPrefix ( string assemblyName, StreamWriter sw, string pathPrefix = "" ) : void
assemblyName string
sw System.IO.StreamWriter
pathPrefix string
return void
Ejemplo n.º 1
0
        private void WriteFile(string assemblyName, IEnumerable <DeclaredSymbolInfo> types, string rootPath, string pathPrefix)
        {
            var fileName           = Path.Combine(rootPath, Constants.Namespaces);
            NamespaceTreeNode root = ConstructTree(types);

            using (var sw = new StreamWriter(fileName))
            {
                Markup.WriteNamespaceExplorerPrefix(assemblyName, sw, pathPrefix);
                WriteChildren(root, sw, pathPrefix);
                Markup.WriteNamespaceExplorerSuffix(sw);
            }
        }