Efficiently serialize a DataTable into a byte array.
The DataTable to serialize.
The serialized data.
Indicates whether to emphasize speed or compression efficiency when serializing the DataTable. Possible values are Optimal, Fastest or NoCompression.