Make IDisposable classes sealed (#2495)

Co-authored-by: MrGadget1024 <chris@clevertech.net>
This commit is contained in:
MrGadget 2020-12-13 22:12:03 -05:00 committed by GitHub
parent e7e36d0558
commit 58aeb622ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ namespace Mirror
/// <summary> /// <summary>
/// NetworkReader to be used with <see cref="NetworkReaderPool">NetworkReaderPool</see> /// NetworkReader to be used with <see cref="NetworkReaderPool">NetworkReaderPool</see>
/// </summary> /// </summary>
public class PooledNetworkReader : NetworkReader, IDisposable public sealed class PooledNetworkReader : NetworkReader, IDisposable
{ {
internal PooledNetworkReader(byte[] bytes) : base(bytes) {} internal PooledNetworkReader(byte[] bytes) : base(bytes) {}
internal PooledNetworkReader(ArraySegment<byte> segment) : base(segment) {} internal PooledNetworkReader(ArraySegment<byte> segment) : base(segment) {}

View File

@ -5,7 +5,7 @@ namespace Mirror
/// <summary> /// <summary>
/// NetworkWriter to be used with <see cref="NetworkWriterPool">NetworkWriterPool</see> /// NetworkWriter to be used with <see cref="NetworkWriterPool">NetworkWriterPool</see>
/// </summary> /// </summary>
public class PooledNetworkWriter : NetworkWriter, IDisposable public sealed class PooledNetworkWriter : NetworkWriter, IDisposable
{ {
public void Dispose() public void Dispose()
{ {