|XmlObjectSerializer.WriteEndObject (XmlDictionaryWriter)||Writes the end of the object data as a closing XML element to the XML document or stream with an XmlDictionaryWriter.|
|XmlObjectSerializer.WriteEndObject (XmlWriter)||Writes the end of the object data as a closing XML element to the XML document or stream with an XmlWriter.|
The WriteStartObject, WriteObjectContent, and WriteEndObject methods must be implemented. The three methods are used in succession to write the complete serialization using the pattern: write start, write content, and write end. Users can insert XML attributes during the writing of the object between the calls to WriteStartObject and WriteEndObject. The three methods are also called by the virtual implementation of the WriteObject method.