@@ -72,8 +72,7 @@ public override void Close()
7272 /// Gets a value indicating whether this instance is closed.
7373 /// </summary>
7474 /// <value><c>true</c> if this instance is closed; otherwise, <c>false</c>.</value>
75- public bool IsClosed
76- {
75+ public bool IsClosed {
7776 get { return isClosed_ ; }
7877 }
7978
@@ -83,8 +82,7 @@ public bool IsClosed
8382 /// <value>
8483 /// <c>true</c> if this instance is disposed; otherwise, <c>false</c>.
8584 /// </value>
86- public bool IsDisposed
87- {
85+ public bool IsDisposed {
8886 get { return isDisposed_ ; }
8987 }
9088
@@ -105,10 +103,8 @@ public class MemoryStreamWithoutSeek : TrackedMemoryStream
105103 /// </summary>
106104 /// <value></value>
107105 /// <returns>true if the stream is open.</returns>
108- public override bool CanSeek
109- {
110- get
111- {
106+ public override bool CanSeek {
107+ get {
112108 return false ;
113109 }
114110 }
@@ -124,8 +120,7 @@ public class NullStream : Stream
124120 /// </summary>
125121 /// <value></value>
126122 /// <returns>true if the stream supports reading; otherwise, false.</returns>
127- public override bool CanRead
128- {
123+ public override bool CanRead {
129124 get { return false ; }
130125 }
131126
@@ -134,8 +129,7 @@ public override bool CanRead
134129 /// </summary>
135130 /// <value></value>
136131 /// <returns>true if the stream supports seeking; otherwise, false.</returns>
137- public override bool CanSeek
138- {
132+ public override bool CanSeek {
139133 get { return false ; }
140134 }
141135
@@ -144,8 +138,7 @@ public override bool CanSeek
144138 /// </summary>
145139 /// <value></value>
146140 /// <returns>true if the stream supports writing; otherwise, false.</returns>
147- public override bool CanWrite
148- {
141+ public override bool CanWrite {
149142 get { return true ; }
150143 }
151144
@@ -165,8 +158,7 @@ public override void Flush()
165158 /// <returns>A long value representing the length of the stream in bytes.</returns>
166159 /// <exception cref="T:System.NotSupportedException">A class derived from Stream does not support seeking. </exception>
167160 /// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
168- public override long Length
169- {
161+ public override long Length {
170162 get { throw new Exception ( "The method or operation is not implemented." ) ; }
171163 }
172164
@@ -178,14 +170,11 @@ public override long Length
178170 /// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
179171 /// <exception cref="T:System.NotSupportedException">The stream does not support seeking. </exception>
180172 /// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
181- public override long Position
182- {
183- get
184- {
173+ public override long Position {
174+ get {
185175 throw new Exception ( "The method or operation is not implemented." ) ;
186176 }
187- set
188- {
177+ set {
189178 throw new Exception ( "The method or operation is not implemented." ) ;
190179 }
191180 }
@@ -281,8 +270,7 @@ public WindowedStream(int size)
281270 /// </summary>
282271 /// <value></value>
283272 /// <returns>true if the stream supports reading; otherwise, false.</returns>
284- public override bool CanRead
285- {
273+ public override bool CanRead {
286274 get { return true ; }
287275 }
288276
@@ -291,8 +279,7 @@ public override bool CanRead
291279 /// </summary>
292280 /// <value></value>
293281 /// <returns>true if the stream supports seeking; otherwise, false.</returns>
294- public override bool CanSeek
295- {
282+ public override bool CanSeek {
296283 get { return false ; }
297284 }
298285
@@ -301,8 +288,7 @@ public override bool CanSeek
301288 /// </summary>
302289 /// <value></value>
303290 /// <returns>true if the stream supports writing; otherwise, false.</returns>
304- public override bool CanWrite
305- {
291+ public override bool CanWrite {
306292 get { return true ; }
307293 }
308294
@@ -322,8 +308,7 @@ public override void Flush()
322308 /// <returns>A long value representing the length of the stream in bytes.</returns>
323309 /// <exception cref="T:System.NotSupportedException">A class derived from Stream does not support seeking. </exception>
324310 /// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
325- public override long Length
326- {
311+ public override long Length {
327312 // A bit of a HAK as its not true in the stream sense.
328313 get { return ringBuffer_ . Count ; }
329314 }
@@ -336,14 +321,11 @@ public override long Length
336321 /// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception>
337322 /// <exception cref="T:System.NotSupportedException">The stream does not support seeking. </exception>
338323 /// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
339- public override long Position
340- {
341- get
342- {
324+ public override long Position {
325+ get {
343326 throw new Exception ( "The method or operation is not implemented." ) ;
344327 }
345- set
346- {
328+ set {
347329 throw new Exception ( "The method or operation is not implemented." ) ;
348330 }
349331 }
@@ -436,8 +418,7 @@ public override void Write(byte[] buffer, int offset, int count)
436418 /// Gets a value indicating whether this instance is closed.
437419 /// </summary>
438420 /// <value><c>true</c> if this instance is closed; otherwise, <c>false</c>.</value>
439- public bool IsClosed
440- {
421+ public bool IsClosed {
441422 get { return ringBuffer_ . IsClosed ; }
442423 }
443424
@@ -453,17 +434,15 @@ public override void Close()
453434 /// Gets the bytes written.
454435 /// </summary>
455436 /// <value>The bytes written.</value>
456- public long BytesWritten
457- {
437+ public long BytesWritten {
458438 get { return ringBuffer_ . BytesWritten ; }
459439 }
460440
461441 /// <summary>
462442 /// Gets the bytes read.
463443 /// </summary>
464444 /// <value>The bytes read.</value>
465- public long BytesRead
466- {
445+ public long BytesRead {
467446 get { return ringBuffer_ . BytesRead ; }
468447 }
469448
0 commit comments