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

void NDoc::Documenter::LinearHtml::LinearHtmlDocumenter::MakeHtmlForMethodParameterDetails ( XPathNavigator  nav,
XmlTextWriter  xtw 
) [inline, private]

Write a parameter list to the specified writer.

Parameters:
nav XPathNavigator to the method's node.
xtw The XmlTextWriter to write the parameter list to.

Definition at line 1551 of file LinearHtmlDocumenter.cs.

            {
                  // add params
                  ArrayList parameterList = GetChildren(nav, "parameter");
                  ArrayList paramList = GetDescendants(nav, "param");

                  if (parameterList.Count > 0)
                  {
                        xtw.WriteStartElement("p");
                        xtw.WriteElementString("lh", "Parameters:");
                        foreach(XPathNavigator n3 in parameterList)
                        {
                              string name = n3.GetAttribute("name", "");
                              string type = n3.GetAttribute("type", "");
                              string simpleType = ToSimpleType(type);
                              string inOutRef = n3.GetAttribute("huh?", "");

                              StringBuilder sb = new StringBuilder();
                              if (inOutRef.Length > 0) sb.Append(inOutRef + " ");
                              sb.Append(simpleType + " " + name);

                              // get description, which is the value of another node!
                              string desc = string.Empty;
                              foreach(XPathNavigator descNav in paramList)
                              {
                                    string tmpName = descNav.GetAttribute("name", "");
                                    if (tmpName == name)
                                    {
                                          desc = descNav.Value;
                                          break;
                                    }
                              }

                              xtw.WriteRaw(String.Format("<li class=\"indent1\">{0} : {1}</li>", sb.ToString(), desc));
                        }
                        xtw.WriteEndElement();
                  }
            }


Generated by  Doxygen 1.6.0   Back to index