12 references to NotSupported_UnwritableStream
System.Private.CoreLib (12)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\ReadOnlyMemoryStream.cs (6)
220public override void SetLength(long value) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 225public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 230public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 235public override void WriteByte(byte value) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 240public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 245public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default) => throw new NotSupportedException(SR.NotSupported_UnwritableStream);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringStream.cs (5)
292public override void SetLength(long value) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 297public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 302public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 307public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 312public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default) => throw new NotSupportedException(SR.NotSupported_UnwritableStream);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
440throw new NotSupportedException(SR.NotSupported_UnwritableStream);