You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: System.IO.Streams/StreamReader.cs
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -47,9 +47,13 @@ public class StreamReader : TextReader
47
47
/// <summary>
48
48
/// Gets the current character encoding that the current <see cref="StreamReader"/> object is using.
49
49
/// </summary>
50
-
/// <value>The current character encoding used by the current reader. The value can be different after the first call to any <see cref="Read"/> method of <see cref="StreamReader"/>, since encoding autodetection is not done until the first call to a <see cref="Read"/> method.</value>
50
+
/// <value>The current character encoding used by the current reader. The value can be different after the first call to any <see cref="Read()"/> method of <see cref="StreamReader"/>, since encoding autodetection is not done until the first call to a <see cref="Read()"/> method.</value>
/// Gets a value that indicates whether the current stream position is at the end of the stream.
55
+
/// </summary>
56
+
/// <value><see langword="true"/> if the current stream position is at the end of the stream; otherwise <see langword="false"/>.</value>
53
57
publicboolEndOfStream
54
58
{
55
59
get
@@ -198,13 +202,12 @@ public override int Peek()
198
202
/// </summary>
199
203
/// <returns>The next character from the input stream represented as an <see cref="int"/> object, or -1 if no more characters are available.</returns>
200
204
/// <remarks>
201
-
/// This method overrides <see cref="TextReader.Read"/>.
205
+
/// This method overrides <see cref="TextReader.Read()"/>.
202
206
/// This method returns an integer so that it can return -1 if the end of the stream has been reached. If you manipulate the position of the underlying stream after reading data into the buffer, the position of the underlying stream might not match the position of the internal buffer.To reset the internal buffer, call the DiscardBufferedData method; however, this method slows performance and should be called only when absolutely necessary.
203
207
/// </remarks>
204
208
publicoverrideintRead()
205
209
{
206
210
intbyteUsed,charUsed;
207
-
boolcompleted=false;
208
211
209
212
while(true)
210
213
{
@@ -270,7 +273,7 @@ public override int Read()
270
273
/// This method overrides TextReader.Read.
271
274
/// This method returns an integer so that it can return 0 if the end of the stream has been reached.
272
275
/// When using the Read method, it is more efficient to use a buffer that is the same size as the internal buffer of the stream, where the internal buffer is set to your desired block size, and to always read less than the block size.If the size of the internal buffer was unspecified when the stream was constructed, its default size is 4 kilobytes(4096 bytes). If you manipulate the position of the underlying stream after reading data into the buffer, the position of the underlying stream might not match the position of the internal buffer.To reset the internal buffer, call the DiscardBufferedData method; however, this method slows performance and should be called only when absolutely necessary.
273
-
/// This method returns after either the number of characters specified by the count parameter are read, or the end of the file is reached. <see cref="ReadBlock"/> is a blocking version of <see cref="Read"/>.
276
+
/// This method returns after either the number of characters specified by the count parameter are read, or the end of the file is reached. <see cref="TextReader.ReadBlock(char[], int, int)"/> is a blocking version of <see cref="Read(char[], int, int)"/>.
Copy file name to clipboardExpand all lines: System.IO.Streams/TextReader.cs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ protected TextReader() { }
27
27
/// Closes the <see cref="TextReader"/> and releases any system resources associated with the <see cref="TextReader"/>.
28
28
/// </summary>
29
29
/// <remarks>
30
-
/// This implementation of <see cref="Close"/> calls the <see cref="TextReader.Dispose"/>(Boolean) method and passes it a true value.
30
+
/// This implementation of <see cref="Close"/> calls the <see cref="TextReader.Dispose(bool)"/> method and passes it a true value.
31
31
/// </remarks>
32
32
publicvirtualvoidClose()
33
33
{
@@ -48,8 +48,8 @@ public void Dispose()
48
48
/// </summary>
49
49
/// <param name="disposing"><see langword="true"/> to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
50
50
/// <remarks>
51
-
/// This method is called by the public <see cref="Dispose"/> method and the Finalize method. By default, this method specifies the disposing parameter as <see langword="true"/>. Finalize specifies the disposing parameter as false.
52
-
/// When the disposing parameter is true, this method releases all resources held by any managed objects that this TextReader references. This method invokes the <see cref="Dispose"/> method of each referenced object.
51
+
/// This method is called by the public <see cref="Dispose()"/> method and the Finalize method. By default, this method specifies the disposing parameter as <see langword="true"/>. Finalize specifies the disposing parameter as false.
52
+
/// When the disposing parameter is true, this method releases all resources held by any managed objects that this TextReader references. This method invokes the <see cref="Dispose()"/> method of each referenced object.
53
53
/// </remarks>
54
54
protectedvirtualvoidDispose(booldisposing)
55
55
{
@@ -98,7 +98,7 @@ public virtual int Read()
98
98
/// This method returns after either count characters are read or the end of the file is reached. <see cref="ReadBlock"/> is a blocking version of this method.
99
99
/// </para>
100
100
/// <para>
101
-
/// The <see cref="TextReader"/> class is an abstract class. Therefore, you do not instantiate it in your code.For an example of using the <see cref="Read"/> method, see the StreamReader.Read method.
101
+
/// The <see cref="TextReader"/> class is an abstract class. Therefore, you do not instantiate it in your code.For an example of using the <see cref="Read(char[], int , int )"/> method, see the StreamReader.Read method.
@@ -118,7 +118,7 @@ public virtual int Read(char[] buffer, int index, int count)
118
118
/// The position of the underlying text reader is advanced by the number of characters that were read into buffer.
119
119
/// </para>
120
120
/// <para>
121
-
/// The method blocks until either count characters are read, or all characters have been read.This is a blocking version of <see cref="Read"/>.
121
+
/// The method blocks until either count characters are read, or all characters have been read.This is a blocking version of <see cref="Read(char[], int, int)"/>.
Copy file name to clipboardExpand all lines: System.IO.Streams/TextWriter.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -222,7 +222,7 @@ public virtual void Write(string value)
222
222
}
223
223
224
224
/// <summary>
225
-
/// Writes the text representation of an object to the text stream by calling the <see cref="ToString"/> method on that object.
225
+
/// Writes the text representation of an object to the text stream by calling the <see cref="object.ToString"/> method on that object.
226
226
/// </summary>
227
227
/// <param name="value">The object to write.</param>
228
228
publicvirtualvoidWrite(objectvalue)
@@ -359,7 +359,7 @@ public virtual void WriteLine(string value)
359
359
}
360
360
361
361
/// <summary>
362
-
/// Writes the text representation of an object to the text stream by calling the <see cref="ToString"/> method on that object, followed by a line terminator.
362
+
/// Writes the text representation of an object to the text stream by calling the <see cref="object.ToString"/> method on that object, followed by a line terminator.
363
363
/// </summary>
364
364
/// <param name="value">The object to write.</param>
0 commit comments