; , StreamReader.BaseStream. , , , StreamReader.
, , - , . , ( ).
, , CanWrite - true ( , , StreamWriter).
, , Reflector:
public virtual Stream BaseStream
{
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
get
{
return this.stream;
}
}
stream Init:
private void Init(Stream stream, Encoding encoding, int bufferSize)
{
this.stream = stream;
...
, , , :
[SecuritySafeCritical]
public StreamWriter(Stream stream, Encoding encoding, int bufferSize)
: base(null)
{
...
this.Init(stream, encoding, bufferSize);
}