Use expression body syntax

This commit is contained in:
teinarss
2021-02-25 20:52:13 +01:00
committed by Paul Chote
parent 555c43843b
commit 4a1e4f3e16
403 changed files with 1342 additions and 2031 deletions

View File

@@ -35,15 +35,16 @@ namespace OpenRA.Primitives
baseStream = stream;
}
public sealed override bool CanSeek { get { return false; } }
public sealed override bool CanRead { get { return true; } }
public sealed override bool CanWrite { get { return false; } }
public sealed override bool CanSeek => false;
public sealed override bool CanRead => true;
public sealed override bool CanWrite => false;
public override long Length => throw new NotSupportedException();
public override long Length { get { throw new NotSupportedException(); } }
public sealed override long Position
{
get { throw new NotSupportedException(); }
set { throw new NotSupportedException(); }
get => throw new NotSupportedException();
set => throw new NotSupportedException();
}
public sealed override long Seek(long offset, SeekOrigin origin) { throw new NotSupportedException(); }