Method Decode
Decode(Encoding)
Returns a string that is decoded from the data contained in the current stream using the specified encoding.
public abstract string Decode(Encoding encoding)
Parameters
encoding
EncodingThe encoding to use to decode the byte stream.
Returns
Remarks
This method will read the entire stream of data bytes for the decoding process, regardless of the current position of the stream. This could also result in an internal allocation of a temporary buffer to hold the data bytes, which could be inefficient for large streams.