Source/NFX/Serialization/Slim/PODSlimSerializer.cs
/// <summary>
/// Serializes a graph of arbitrary CLR objects into stream using PortableObjectDocument container,
///  optionally taking document creation attributes
/// </summary>
/// <param name="stream">Target stream</param>
/// <param name="root">CLR object graph</param>
/// <param name="documentCreationDate">Optional document creation attribute</param>
/// <param name="documentNotes">Optional document creation attribute</param>
Serializes a graph of arbitrary CLR objects into stream using PortableObjectDocument container,
optionally taking document creation attributes
Serializes a graph of arbitrary CLR objects into stream using PortableObjectDocument container optionally taking document creation attributes
public void Serialize(Stream stream, object root, DateTime? documentCreationDate = null, string documentNotes = null)
            {
              var document = new PortableObjectDocument(root, documentCreationDate, documentNotes);
              m_Serializer.Serialize(stream, document);
            }
public void Serialize ( Stream stream , object root , DateTime ? documentCreationDate = null , string documentNotes = null ) { var document = new PortableObjectDocument ( root , documentCreationDate , documentNotes ) ; m_Serializer . Serialize ( stream , document ) ; }
Serializes a graph of arbitrary CLR objects into stream using PortableObjectDocument container,
optionally taking document creation attributes
Serializes a graph of arbitrary CLR objects into stream using PortableObjectDocument container optionally taking document creation attributes
stream
Stream
None
root
object
CLR object graph
CLR object graph
documentCreationDate
DateTime?
Optional document creation attribute
Optional document creation attribute
documentNotes
string
Optional document creation attribute
Optional document creation attribute