mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Make IDisposable classes sealed (#2495)
Co-authored-by: MrGadget1024 <chris@clevertech.net>
This commit is contained in:
parent
e7e36d0558
commit
58aeb622ba
@ -5,7 +5,7 @@ namespace Mirror
|
||||
/// <summary>
|
||||
/// NetworkReader to be used with <see cref="NetworkReaderPool">NetworkReaderPool</see>
|
||||
/// </summary>
|
||||
public class PooledNetworkReader : NetworkReader, IDisposable
|
||||
public sealed class PooledNetworkReader : NetworkReader, IDisposable
|
||||
{
|
||||
internal PooledNetworkReader(byte[] bytes) : base(bytes) {}
|
||||
internal PooledNetworkReader(ArraySegment<byte> segment) : base(segment) {}
|
||||
|
@ -5,7 +5,7 @@ namespace Mirror
|
||||
/// <summary>
|
||||
/// NetworkWriter to be used with <see cref="NetworkWriterPool">NetworkWriterPool</see>
|
||||
/// </summary>
|
||||
public class PooledNetworkWriter : NetworkWriter, IDisposable
|
||||
public sealed class PooledNetworkWriter : NetworkWriter, IDisposable
|
||||
{
|
||||
public void Dispose()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user