public override void RenderObsoleteMessage(StringBuilder output, MemberComparer member, string description, string optionalObsoleteMessage) { output.Append("[Obsolete ("); if (!String.IsNullOrEmpty(optionalObsoleteMessage)) { output.Append('"').Append(optionalObsoleteMessage).Append('"'); } output.AppendLine(")]"); output.Append(description); }
public override void RenderObsoleteMessage(StringBuilder output, MemberComparer member, string description, string optionalObsoleteMessage) { output.Append($"<span class='obsolete obsolete-{member.ElementName}' data-is-non-breaking>"); output.Append("[Obsolete ("); if (!String.IsNullOrEmpty(optionalObsoleteMessage)) { output.Append('"').Append(optionalObsoleteMessage).Append('"'); } output.AppendLine(")]"); output.Append(description); output.Append("</span>"); }
public override void RemoveMember(TextWriter output, MemberComparer member, bool breaking, string obsolete, string description) { Indent(output); output.Write("<span class='removed removed-{0} {2}' {1}>", member.ElementName, breaking ? "data-is-breaking" : "data-is-non-breaking", breaking ? "breaking" : string.Empty); if (obsolete.Length > 0) { output.Write(obsolete); Indent(output); } output.Write(description); output.WriteLine("</span>"); }
public override void BeginMemberRemoval(TextWriter output, IEnumerable <XElement> list, MemberComparer member) { if (State.BaseType == "System.Enum") { output.WriteLine("<p>Removed value{0}:</p>", list.Count() > 1 ? "s" : String.Empty); output.WriteLine("<pre class='removed' data-is-breaking>"); } else { output.WriteLine("<p>Removed {0}:</p>\n", list.Count() > 1 ? member.GroupName : member.ElementName); output.WriteLine("<pre>"); } State.Indent++; }
public override void AddMember(TextWriter output, MemberComparer member, bool isInterfaceBreakingChange, string obsolete, string description) { output.Write("<span class='added added-{0} {1}' {2}>", member.ElementName, isInterfaceBreakingChange ? "breaking" : string.Empty, isInterfaceBreakingChange ? "data-is-breaking" : "data-is-non-breaking"); output.Write($"{obsolete}{description}"); output.WriteLine("</span>"); }
public abstract void RenderObsoleteMessage(StringBuilder output, MemberComparer member, string description, string optionalObsoleteMessage);
public abstract void RemoveMember(TextWriter output, MemberComparer member, bool breaking, string obsolete, string description);
public abstract void BeginMemberRemoval(TextWriter output, IEnumerable <XElement> list, MemberComparer member);
public abstract void AddMember(TextWriter output, MemberComparer member, bool isInterfaceBreakingChange, string obsolete, string description);
public override void AddMember(TextWriter output, MemberComparer member, bool isInterfaceBreakingChange, string obsolete, string description) { output.Write(obsolete); output.WriteLine(description); }
public override void BeginMemberAddition(TextWriter output, IEnumerable <XElement> list, MemberComparer member) { if (State.BaseType == "System.Enum") { output.WriteLine("Added value{0}:", list.Count() > 1 ? "s" : String.Empty); } else { output.WriteLine("Added {0}:", list.Count() > 1 ? member.GroupName : member.ElementName); } output.WriteLine(); output.WriteLine("```csharp"); }
public override void RemoveMember(TextWriter output, MemberComparer member, bool is_breaking, string obsolete, string description) { output.Write(obsolete); output.WriteLine(description); }