Exemple #1
0
 public void WriteTo(CodeSectionWriter codeWriter, CodeWriterOptions options)
 {
     codeWriter.WriteUsingStatement("System");
     if (string.IsNullOrEmpty(obsoleteMessage) || "True".Equals(obsoleteMessage))
     {
         codeWriter.WriteLine($"[Obsolete(\"This has been marked as deprecated without a description message. Please refer to the summary comment or the official API documentation.\")]");
     }
     else
     {
         codeWriter.WriteLine($"[Obsolete(\"{obsoleteMessage}\")]");
     }
 }
Exemple #2
0
 public void WriteTo(CodeSectionWriter codeWriter, CodeWriterOptions options)
 {
     codeWriter.WriteLine($"/// <param name=\"{paramName}\">{description.ToXmlContent()}</param>");
 }
Exemple #3
0
 public void WriteTo(CodeSectionWriter codeWriter, CodeWriterOptions options)
 {
     codeWriter.WriteLine($"// {content}");
 }
 public void WriteTo(CodeSectionWriter codeWriter, CodeWriterOptions options)
 {
     codeWriter.WriteLine("/// <inheritdoc />");
 }
Exemple #5
0
 public void WriteTo(CodeSectionWriter codeWriter, CodeWriterOptions options)
 {
     codeWriter.WriteLine($"/// <summary>{content.ToXmlContent()}</summary>");
 }
 public void WriteTo(CodeSectionWriter codeWriter, CodeWriterOptions options)
 {
     codeWriter.WriteLine($"/// <returns>{description.ToXmlContent()}</returns>");
 }
 public void WriteTo(CodeSectionWriter codeWriter, CodeWriterOptions options)
 {
     codeWriter.WriteLine($"[{attribute}]");
 }