/// <summary> /// Returns an HTML-code representation of the node. /// </summary> /// <param name="writer">The serialization output target.</param> /// <param name="formatter">The formatter to use.</param> /// <returns>A string containing the HTML code.</returns> public override void ToHtml(TextWriter writer, IMarkupFormatter formatter) { writer.Write(formatter.Doctype(this)); }
/// <inheritdoc /> public string Doctype(IDocumentType doctype) => _formatter.Doctype(doctype);
/// <summary> /// Returns an HTML-code representation of the node. /// </summary> /// <param name="formatter">The formatter to use.</param> /// <returns>A string containing the HTML code.</returns> public override String ToHtml(IMarkupFormatter formatter) { return formatter.Doctype(this); }
/// <summary> /// Returns an HTML-code representation of the node. /// </summary> /// <param name="formatter">The formatter to use.</param> /// <returns>A string containing the HTML code.</returns> public override String ToHtml(IMarkupFormatter formatter) { return(formatter.Doctype(this)); }
public string Doctype(IDocumentType doctype) { return(defaultFormatter.Doctype(doctype)); }