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