mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00: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>
|
/// <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) {}
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user