File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -198,19 +198,13 @@ internal static class StreamExtensions
198198 internal static readonly Encoding DefaultEncoding = new UTF8Encoding ( false , true ) ;
199199
200200 public static BinaryReader CreateReader ( this Stream stream )
201- {
202- return new BinaryReader ( stream , DefaultEncoding , true ) ;
203- }
201+ => new BinaryReader ( stream , DefaultEncoding , true ) ;
204202
205203 public static BinaryWriter CreateWriter ( this Stream stream )
206- {
207- return new BinaryWriter ( stream , DefaultEncoding , true ) ;
208- }
204+ => new BinaryWriter ( stream , DefaultEncoding , true ) ;
209205
210206 public static DateTimeOffset ReadDateTimeOffset ( this BinaryReader reader )
211- {
212- return new DateTimeOffset ( reader . ReadInt64 ( ) , TimeSpan . Zero ) ;
213- }
207+ => new DateTimeOffset ( reader . ReadInt64 ( ) , TimeSpan . Zero ) ;
214208
215209 public static void Write ( this BinaryWriter writer , DateTimeOffset value )
216210 {
You can’t perform that action at this time.
0 commit comments