[学习日记] Steam and I/O Architecture
The most fundamental types for input and output int the .NET. These types int the System.IO namespace, the home of lower-level I/o functionality.
The .NET steam architecture centers on three concepts : backing stores, decoratiors, and adapters. as the following Figure.
Steams fall into two categories:
These are hard-wired to a particular type of backing store, such as FileStream or NetworkStream
Decorator streams
These feed off another stream, transforming the data in some way, such as DeflateStream or CryptoStream