Mono.CSharp.ModuleContainer.GenerateDocComment C# (CSharp) Method

GenerateDocComment() private method

private GenerateDocComment ( Mono.CSharp.DocumentationBuilder builder ) : void
builder Mono.CSharp.DocumentationBuilder
return void
		internal override void GenerateDocComment (DocumentationBuilder builder)
		{
			foreach (var tc in containers)
				tc.GenerateDocComment (builder);
		}

Usage Example

示例#1
0
        //
        // Outputs XML documentation comment from tokenized comments.
        //
        public bool OutputDocComment(string asmfilename, string xmlFileName)
        {
            XmlTextWriter w = null;

            try {
                w             = new XmlTextWriter(xmlFileName, null);
                w.Indentation = 4;
                w.Formatting  = Formatting.Indented;
                w.WriteStartDocument();
                w.WriteStartElement("doc");
                w.WriteStartElement("assembly");
                w.WriteStartElement("name");
                w.WriteString(Path.GetFileNameWithoutExtension(asmfilename));
                w.WriteEndElement();                  // name
                w.WriteEndElement();                  // assembly
                w.WriteStartElement("members");
                XmlCommentOutput = w;
                module.GenerateDocComment(this);
                w.WriteFullEndElement();                  // members
                w.WriteEndElement();
                w.WriteWhitespace(Environment.NewLine);
                w.WriteEndDocument();
                return(true);
            } catch (Exception ex) {
                Report.Error(1569, "Error generating XML documentation file `{0}' (`{1}')", xmlFileName, ex.Message);
                return(false);
            } finally {
                if (w != null)
                {
                    w.Close();
                }
            }
        }