/// <summary> /// Write the contents of this element to the given <see cref="XmlWriter"/>. /// </summary> /// <remarks>The caller of this method has already written the start element tag before /// calling this method, so deriving classes only need to write the element content, not /// the start or end tags.</remarks> /// <param name="writer">Writer to send XML content to.</param> public override void SerializeContent(XmlWriter writer) { writer.WriteAttributeIfNotEmpty(NamePropertyName, Name); Extensions.SerializeElementContents(writer, "extension"); Registrations.SerializeElementContents(writer, "register"); Instances.SerializeElementContents(writer, "instance"); SerializeContainerConfiguringElements(writer); }