public void Write(Cart cart)
 {
     _binaryWriter.Write(cart.ToString() ?? string.Empty);
     cart.GetObjectData(this);
 }