Skip to content

Commit

Permalink
feat(storage): Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Oct 9, 2020
1 parent ec732a5 commit fb7505f
Showing 1 changed file with 11 additions and 33 deletions.
44 changes: 11 additions & 33 deletions src/Uno.UWP/Storage/OwnedStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,54 +25,32 @@ public void DisposeBy(object owner)
}

public override void Flush()
{
_stream.Flush();
}
=> _stream.Flush();

public override int Read(byte[] buffer, int offset, int count)
{
return _stream.Read(buffer, offset, count);
}
=> _stream.Read(buffer, offset, count);

public override long Seek(long offset, SeekOrigin origin)
{
return _stream.Seek(offset, origin);
}
=> _stream.Seek(offset, origin);

public override void SetLength(long value)
{
_stream.SetLength(value);
}
=> _stream.SetLength(value);

public override void Write(byte[] buffer, int offset, int count)
{
_stream.Write(buffer, offset, count);
}
=> _stream.Write(buffer, offset, count);

public override bool CanRead
{
get { return _stream.CanRead; }
}
public override bool CanRead => _stream.CanRead;

public override bool CanSeek
{
get { return _stream.CanSeek; }
}
public override bool CanSeek => _stream.CanSeek;

public override bool CanWrite
{
get { return _stream.CanWrite; }
}
public override bool CanWrite => _stream.CanWrite;

public override long Length
{
get { return _stream.Length; }
}
public override long Length => _stream.Length;

public override long Position
{
get { return _stream.Position; }
set { _stream.Position = value; }
get => _stream.Position;
set => _stream.Position = value;
}
}
}

0 comments on commit fb7505f

Please sign in to comment.