Skip to content

Commit cbb87c5

Browse files
author
Ron Petrusha
authored
Corrected inheritance, copy-and-paste errors (#2310)
1 parent 2564ecb commit cbb87c5

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

xml/System.IO/StreamReader.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,13 +1033,12 @@
10331033
<format type="text/markdown"><![CDATA[
10341034
10351035
## Remarks
1036-
This method overrides the <xref:System.IO.TextWriter.Close%2A?displayProperty=nameWithType> method.
1036+
1037+
This method overrides the <xref:System.IO.TextReader.Close%2A?displayProperty=nameWithType> method.
10371038
1038-
This implementation of <xref:System.IO.StreamReader.Close%2A> calls the <xref:System.IO.StreamReader.Dispose%2A> method passing a `true` value.
1039+
This implementation of <xref:System.IO.StreamReader.Close%2A> calls the <xref:System.IO.StreamReader.Dispose%2A> method, passing a `true` value.
10391040
1040-
Flushing the stream will not flush its underlying encoder unless you explicitly call <xref:System.IO.StreamReader.Close%2A>. Setting <xref:System.IO.StreamWriter.AutoFlush%2A> 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.
1041-
1042-
Following a call to <xref:System.IO.StreamReader.Close%2A>, any operations on the reader might raise exceptions.
1041+
Following a call to <xref:System.IO.StreamReader.Close%2A>, any operations on the reader might raise exceptions.
10431042
10441043
]]></format>
10451044
</remarks>

xml/System.IO/StringReader.xml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,12 @@
198198
<format type="text/markdown"><![CDATA[
199199
200200
## Remarks
201-
For an example of creating a file and writing text to a file, see [How to: Write Text to a File](~/docs/standard/io/how-to-write-text-to-a-file.md). For an example of reading text from a file, see [How to: Read Text from a File](~/docs/standard/io/how-to-read-text-from-a-file.md). For an example of reading from and writing to a binary file, see [How to: Read and Write to a Newly Created Data File](~/docs/standard/io/how-to-read-and-write-to-a-newly-created-data-file.md).
201+
202+
For an example of creating a file and writing text to a file, see [How to: Write Text to a File](~/docs/standard/io/how-to-write-text-to-a-file.md). For an example of reading text from a file, see [How to: Read Text from a File](~/docs/standard/io/how-to-read-text-from-a-file.md). For an example of reading from and writing to a binary file, see [How to: Read and Write to a Newly Created Data File](~/docs/standard/io/how-to-read-and-write-to-a-newly-created-data-file.md).
202203
203-
This method overrides the <xref:System.IO.Stream.Close%2A?displayProperty=nameWithType> method.
204+
This method overrides the <xref:System.IO.TextReader.Close%2A?displayProperty=nameWithType> method.
204205
205-
This implementation of `Close` calls the <xref:System.IO.StringReader.Dispose%2A> method passing a `true` value.
206-
207-
Flushing the stream will not flush its underlying encoder unless you explicitly call `Close`. Setting <xref:System.IO.StreamWriter.AutoFlush%2A> 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 only be encoded after the encoder receives the adjacent character or characters.
208-
209-
Following a call to `Close`, other methods might throw an exception.
206+
This implementation of `Close` calls the <xref:System.IO.StringReader.Dispose%2A>, method passing a `true` value. Following a call to `Close`, other methods might throw an exception.
210207
211208
]]></format>
212209
</remarks>

0 commit comments

Comments
 (0)