Writes only the starting XML element to an XML document or stream.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
The 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. If the implementation writes using XML elements, attributes can be inserted before writing the contents of the object. The three methods are also called by the virtual implementation of the WriteObject method.,