@@ -138,7 +138,7 @@ public override void Write(byte[] buffer, int offset, int count)
138138 /// <returns>
139139 /// A task that represents the asynchronous copy operation.
140140 /// </returns>
141- public override async Task CopyToAsync ( Stream destination , int bufferSize , CancellationToken cancellationToken = default ( CancellationToken ) )
141+ public override async Task CopyToAsync ( Stream destination , int bufferSize , CancellationToken cancellationToken = default )
142142 {
143143 if ( bufferLength > 0 )
144144 {
@@ -157,7 +157,7 @@ public override void Write(byte[] buffer, int offset, int count)
157157 /// <returns>
158158 /// A task that represents the asynchronous flush operation.
159159 /// </returns>
160- public override Task FlushAsync ( CancellationToken cancellationToken = default ( CancellationToken ) )
160+ public override Task FlushAsync ( CancellationToken cancellationToken = default )
161161 {
162162 return baseStream . FlushAsync ( cancellationToken ) ;
163163 }
@@ -182,7 +182,7 @@ public override void Write(byte[] buffer, int offset, int count)
182182 /// less than the requested number, or it can be 0 (zero)
183183 /// if the end of the stream has been reached.
184184 /// </returns>
185- public override async Task < int > ReadAsync ( byte [ ] buffer , int offset , int count , CancellationToken cancellationToken = default ( CancellationToken ) )
185+ public override async Task < int > ReadAsync ( byte [ ] buffer , int offset , int count , CancellationToken cancellationToken = default )
186186 {
187187 if ( bufferLength == 0 )
188188 {
@@ -228,7 +228,7 @@ public override int ReadByte()
228228 /// <param name="index">The index.</param>
229229 /// <param name="cancellationToken">The cancellation token.</param>
230230 /// <returns></returns>
231- public async Task < int > PeekByteAsync ( int index , CancellationToken cancellationToken = default ( CancellationToken ) )
231+ public async Task < int > PeekByteAsync ( int index , CancellationToken cancellationToken = default )
232232 {
233233 if ( Available <= index )
234234 {
@@ -258,7 +258,7 @@ public override int ReadByte()
258258 /// <param name="index">The index.</param>
259259 /// <param name="cancellationToken">The cancellation token.</param>
260260 /// <returns></returns>
261- public async Task < int > PeekBytesAsync ( byte [ ] buffer , int offset , int index , int size , CancellationToken cancellationToken = default ( CancellationToken ) )
261+ public async Task < int > PeekBytesAsync ( byte [ ] buffer , int offset , int index , int size , CancellationToken cancellationToken = default )
262262 {
263263 if ( Available <= index )
264264 {
@@ -324,7 +324,7 @@ public byte ReadByteFromBuffer()
324324 /// A task that represents the asynchronous write operation.
325325 /// </returns>
326326 [ DebuggerStepThrough ]
327- public override async Task WriteAsync ( byte [ ] buffer , int offset , int count , CancellationToken cancellationToken = default ( CancellationToken ) )
327+ public override async Task WriteAsync ( byte [ ] buffer , int offset , int count , CancellationToken cancellationToken = default )
328328 {
329329 OnDataWrite ( buffer , offset , count ) ;
330330
@@ -484,7 +484,7 @@ public bool FillBuffer()
484484 /// </summary>
485485 /// <param name="cancellationToken">The cancellation token.</param>
486486 /// <returns></returns>
487- public async Task < bool > FillBufferAsync ( CancellationToken cancellationToken = default ( CancellationToken ) )
487+ public async Task < bool > FillBufferAsync ( CancellationToken cancellationToken = default )
488488 {
489489 if ( closed )
490490 {
@@ -526,7 +526,7 @@ public bool FillBuffer()
526526 /// Read a line from the byte stream
527527 /// </summary>
528528 /// <returns></returns>
529- public Task < string > ReadLineAsync ( CancellationToken cancellationToken = default ( CancellationToken ) )
529+ public Task < string > ReadLineAsync ( CancellationToken cancellationToken = default )
530530 {
531531 return ReadLineInternalAsync ( this , bufferPool , cancellationToken ) ;
532532 }
@@ -535,9 +535,9 @@ public bool FillBuffer()
535535 /// Read a line from the byte stream
536536 /// </summary>
537537 /// <returns></returns>
538- internal static async Task < string > ReadLineInternalAsync ( ICustomStreamReader reader , IBufferPool bufferPool , CancellationToken cancellationToken = default ( CancellationToken ) )
538+ internal static async Task < string > ReadLineInternalAsync ( ICustomStreamReader reader , IBufferPool bufferPool , CancellationToken cancellationToken = default )
539539 {
540- byte lastChar = default ( byte ) ;
540+ byte lastChar = default ;
541541
542542 int bufferDataLength = 0 ;
543543
@@ -591,7 +591,7 @@ public bool FillBuffer()
591591 /// Read until the last new line, ignores the result
592592 /// </summary>
593593 /// <returns></returns>
594- public async Task ReadAndIgnoreAllLinesAsync ( CancellationToken cancellationToken = default ( CancellationToken ) )
594+ public async Task ReadAndIgnoreAllLinesAsync ( CancellationToken cancellationToken = default )
595595 {
596596 while ( ! string . IsNullOrEmpty ( await ReadLineAsync ( cancellationToken ) ) )
597597 {
0 commit comments