Write Method Write(T) Converts given object to byte array Declaration byte[] Write(T obj) Parameters T obj that will be serialized Returns Byte[] byte array that object is serialized into Exceptions IOException System.IO.IOException