Writes an object of type T on the given stream.
public static void Write<T>(System.IO.Stream stream, in T value);
T
The type of the object serialized.
stream
System.IO.Stream
The System.IO.Stream instance on which the object is to be serialized.
value
T
The object to serialize.
System.ArgumentNullException
stream is null.