Writes the closing XML element to an XML stream or document.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
The WriteStartObject, WriteObjectContent, and 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 . The three methods are also called by the virtual implementation of the WriteObject method.