Use expression body syntax
This commit is contained in:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user