private void WriteSimpleType(SimpleTypeReference simple, DisplayOptions options, bool showOuterType, XmlWriter writer) { if (targets[simple.Id] is TypeTarget type) { WriteTypeTarget(type, options, showOuterType, writer); } else { TextReferenceUtilities.WriteSimpleTypeReference(simple, options, writer); } }
private void WriteSimpleMember(SimpleMemberReference member, DisplayOptions options, XmlWriter writer, Dictionary <IndexedTemplateTypeReference, TypeReference> dictionary) { if (targets[member.Id] is MemberTarget target) { WriteMemberTarget(target, options, writer, dictionary); } else { TextReferenceUtilities.WriteSimpleMemberReference(member, options, writer, this); } }
/// <summary> /// Write out a namespace reference /// </summary> /// <param name="spaceReference">The namespace reference information</param> /// <param name="writer">The write to which the information is written</param> public void WriteNamespace(NamespaceReference spaceReference, XmlWriter writer) { if (spaceReference == null) { throw new ArgumentNullException(nameof(spaceReference)); } if (writer == null) { throw new ArgumentNullException(nameof(writer)); } if (targets[spaceReference.Id] is NamespaceTarget spaceTarget) { WriteNamespaceTarget(spaceTarget, writer); } else { TextReferenceUtilities.WriteNamespaceReference(spaceReference, writer); } }