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

string NDoc::Documenter::LinearHtml::LinearHtmlDocumenter::MakeMethodParametersString ( XPathNavigator  nav  )  [inline, private]

Make a string for a method's parameter list, such as "int x, int y, string s".

Parameters:
nav Navigator to the Method's node.
Returns:
The param list string.

Definition at line 1627 of file LinearHtmlDocumenter.cs.

            {
                  StringBuilder sb = new StringBuilder();

                  // add params
                  ArrayList paramList = GetChildren(nav, "parameter");
                  if (paramList.Count > 0)
                  {
                        bool first = true;
                        foreach(XPathNavigator n3 in paramList)
                        {
                              if (!first) sb.Append(", ");
                              first = false;
                              string name = n3.GetAttribute("name", "");
                              string type = n3.GetAttribute("type", "");
                              string simpleType = ToSimpleType(type);
                              string inOutRef = n3.GetAttribute("huh?", "");
                              if (inOutRef.Length > 0) sb.Append(inOutRef + " ");
                              sb.Append(simpleType + " " + name);
                        }
                  }

                  return(TypeRefWrap(sb.ToString()));
            }


Generated by  Doxygen 1.6.0   Back to index