Logo Search packages:      
Sourcecode: ndoc version File versions  Download package

bool NDoc::Documenter::LinearHtml::LinearHtmlDocumenter::DeleteWriters (  )  [inline, private]

Close all writers. They need to be re-created for the next build.

Returns:

Definition at line 419 of file LinearHtmlDocumenter.cs.

            {
                  if (namespaceListWriter != null) namespaceListWriter.Close();
                  namespaceListWriter = null;

                  ArrayList nsSectionList = new ArrayList(orderedNamespaceSections);
                  nsSectionList.Insert(0, "typeList"); // use this for the type list too

                  foreach(string namespaceName in namespaceWriters.Keys)
                  {
                        Hashtable nsSectionWriters = (Hashtable)namespaceWriters[namespaceName];

                        foreach(string sectionKey in nsSectionList)
                        {
                              string sectionName = (string)namespaceSections[sectionKey];
                              XmlTextWriter xtw = (XmlTextWriter)nsSectionWriters[sectionName];
                              if (xtw != null) 
                              {
                                    xtw.Close();
                                    nsSectionWriters.Remove(sectionName);
                              }
                        }

                        nsSectionWriters.Clear();
                  }

                  namespaceWriters.Clear();

                  return(true);
            }


Generated by  Doxygen 1.6.0   Back to index