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}\")]"); } }
public void WriteTo(CodeSectionWriter codeWriter, CodeWriterOptions options) { codeWriter.WriteLine($"/// <param name=\"{paramName}\">{description.ToXmlContent()}</param>"); }
public void WriteTo(CodeSectionWriter codeWriter, CodeWriterOptions options) { codeWriter.WriteLine($"// {content}"); }
public void WriteTo(CodeSectionWriter codeWriter, CodeWriterOptions options) { codeWriter.WriteLine("/// <inheritdoc />"); }
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}]"); }