Get again all the advantages of DataStream from the properties of DataReader, DataWriter, TextDataReader and TextDataWriter.
This reduces the amount of breaking changes introduced by this release.
Also set CanTimeout to false and return invalid values for ReadTimeout and WriterTimeout. The default implementation is to throw an exception and that make almost impossible to use some reflection in the type. For instance in debuggers or in UI controls that display automatically the value of the properties.
Example
using var stream = new DataStream();
var reader = new DataReader(stream);
reader.Stream.PushPosition();
Description
Get again all the advantages of
DataStream
from the properties ofDataReader
,DataWriter
,TextDataReader
andTextDataWriter
. This reduces the amount of breaking changes introduced by this release.Also set
CanTimeout
tofalse
and return invalid values forReadTimeout
andWriterTimeout
. The default implementation is to throw an exception and that make almost impossible to use some reflection in the type. For instance in debuggers or in UI controls that display automatically the value of the properties.Example