Serializes an object to a Document.
            
 Declaration Syntax
 Declaration Syntax| C# | 
Document ToDocument<T>( T value )
 Generic Template Parameters
 Generic Template Parameters- T
- Type to serialize as.
 Parameters
 Parameters- value (T)
- Object to serialize.
 Return Value
 Return ValueDocument with attributes populated from object.