/// <summary> /// Write out a type target /// </summary> /// <param name="type">The type target information</param> /// <param name="options">The link display options</param> /// <param name="showOuterType">True to show the outer type, false if not</param> /// <param name="writer">The write to which the information is written</param> private void WriteTypeTarget(TypeTarget type, DisplayOptions options, bool showOuterType, XmlWriter writer) { // write namespace, if containers are requested if ((options & DisplayOptions.ShowContainer) > 0) { WriteNamespace(type.ContainingNamespace, writer); WriteSeparator(writer); } // write outer type, if one exists if (showOuterType && (type.ContainingType != null)) { WriteSimpleType(type.ContainingType, DisplayOptions.Default, writer); WriteSeparator(writer); } // write the type name writer.WriteString(type.Name); // write if template parameters, if they exist and we are requested if ((options & DisplayOptions.ShowTemplates) > 0) { WriteTemplateParameters(type.Templates, writer); } }
/// <summary> /// Write out a type target /// </summary> /// <param name="type">The type target information</param> /// <param name="options">The link display options</param> /// <param name="writer">The write to which the information is written</param> public void WriteTypeTarget(TypeTarget type, DisplayOptions options, XmlWriter writer) { if (type == null) { throw new ArgumentNullException(nameof(type)); } if (writer == null) { throw new ArgumentNullException(nameof(writer)); } WriteTypeTarget(type, options, true, writer); }