Skip to content

Commit 6392a35

Browse files
author
Ron Petrusha
authored
Corrected copy-and-paste error (dotnet#2263)
1 parent 3417fad commit 6392a35

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

xml/System.IO/TextReader.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@
163163
<format type="text/markdown"><![CDATA[
164164
165165
## Remarks
166-
This implementation of `Close` calls the <xref:System.IO.StringReader.Dispose%28System.Boolean%29?displayProperty=nameWithType> method and passes it a `true` value.
167-
168-
Flushing the text reader will not flush its underlying encoder unless you explicitly call `Close`. Setting the <xref:System.IO.StreamWriter.AutoFlush%2A?displayProperty=nameWithType> property to `true` means that data will be flushed from the buffer to the stream, but the encoder state will not be flushed. This allows the encoder to keep its state (partial characters) so that it can encode the next block of characters correctly. This scenario affects UTF8 and UTF7 where certain characters can be encoded only after the encoder receives the adjacent character or characters.
166+
This implementation of `Close` calls the <xref:System.IO.TextReader.Dispose%28System.Boolean%29?displayProperty=nameWithType> method and passes it a `true` value.
169167
170168
> [!NOTE]
171169
> In derived classes, do not override the <xref:System.IO.TextReader.Close%2A> method. Instead, override the <xref:System.IO.TextReader.Dispose%28System.Boolean%29?displayProperty=nameWithType> method to add code for releasing resources.

0 commit comments

Comments
 (0)