Skip to content

Commit

Permalink
c#6 syntax for IgnoreDisposeStream
Browse files Browse the repository at this point in the history
  • Loading branch information
markheath committed Sep 9, 2016
1 parent c4ea062 commit e3b8353
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions NAudio/Utils/IgnoreDisposeStream.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace NAudio.Utils
Expand Down Expand Up @@ -35,26 +33,17 @@ public IgnoreDisposeStream(Stream sourceStream)
/// <summary>
/// Can Read
/// </summary>
public override bool CanRead
{
get { return SourceStream.CanRead; }
}
public override bool CanRead => SourceStream.CanRead;

/// <summary>
/// Can Seek
/// </summary>
public override bool CanSeek
{
get { return SourceStream.CanSeek; }
}
public override bool CanSeek => SourceStream.CanSeek;

/// <summary>
/// Can write to the underlying stream
/// </summary>
public override bool CanWrite
{
get { return SourceStream.CanWrite; }
}
public override bool CanWrite => SourceStream.CanWrite;

/// <summary>
/// Flushes the underlying stream
Expand All @@ -67,10 +56,7 @@ public override void Flush()
/// <summary>
/// Gets the length of the underlying stream
/// </summary>
public override long Length
{
get { return SourceStream.Length; }
}
public override long Length => SourceStream.Length;

/// <summary>
/// Gets or sets the position of the underlying stream
Expand Down

0 comments on commit e3b8353

Please sign in to comment.