Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 31ff1b2

Browse files
committed
Remove non-existing overrides of Close() and GetBuffer() for PCL version
1 parent d4c02e2 commit 31ff1b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ServiceStack.Text/RecyclableMemoryStream.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,11 @@ protected override void Dispose(bool disposing)
940940
/// <summary>
941941
/// Equivalent to Dispose
942942
/// </summary>
943+
#if !PCL
943944
public override void Close()
945+
#else
946+
public void Close()
947+
#endif
944948
{
945949
this.Dispose(true);
946950
}
@@ -1061,7 +1065,11 @@ public override bool CanWrite
10611065
/// <remarks>IMPORTANT: Doing a Write() after calling GetBuffer() invalidates the buffer. The old buffer is held onto
10621066
/// until Dispose is called, but the next time GetBuffer() is called, a new buffer from the pool will be required.</remarks>
10631067
/// <exception cref="ObjectDisposedException">Object has been disposed</exception>
1068+
#if !PCL
10641069
public override byte[] GetBuffer()
1070+
#else
1071+
public byte[] GetBuffer()
1072+
#endif
10651073
{
10661074
this.CheckDisposed();
10671075

0 commit comments

Comments
 (0)