Skip to content

ObjectSerializer.Serialize(object, Stream, SerializerSession, Type, int)

Serialize(object, Stream, SerializerSession, Type, int)

View source
public void Serialize(object value, Stream destination, SerializerSession session, Type type, int sizeHint = 0)
Serializes the provided value into destination.

Parameters

valueobject
The value to serialize.
destinationStream
The destination where serialized data will be written.
sessionSerializerSession
The serializer session.
typeType
The expected type of the value.
sizeHintint
The estimated upper bound for the length of the serialized data.