public void WriteContent(Stream os) { if (streamBytes != null) streamBytes.WriteTo(os); else if (bytes != null) os.Write(bytes, 0, bytes.Length); }