2023-04-11 08:21:49 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
2026-01-08 21:20:58 -05:00
|
|
|
|
namespace WinFormSample;
|
|
|
|
|
|
|
|
|
|
|
|
internal class NoOpStream : Stream
|
2023-04-11 08:21:49 -04:00
|
|
|
|
{
|
|
|
|
|
|
public override bool CanRead => false;
|
|
|
|
|
|
|
|
|
|
|
|
public override bool CanSeek => false;
|
|
|
|
|
|
|
|
|
|
|
|
public override bool CanWrite => true;
|
|
|
|
|
|
|
|
|
|
|
|
public override long Length => 0;
|
|
|
|
|
|
|
|
|
|
|
|
public override long Position { get => 0; set { } }
|
|
|
|
|
|
|
|
|
|
|
|
public override void Flush()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override int Read(byte[] buffer, int offset, int count)
|
|
|
|
|
|
{
|
2026-01-08 21:20:58 -05:00
|
|
|
|
throw new NotImplementedException();
|
2023-04-11 08:21:49 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override long Seek(long offset, SeekOrigin origin)
|
|
|
|
|
|
{
|
2026-01-08 21:20:58 -05:00
|
|
|
|
throw new NotImplementedException();
|
2023-04-11 08:21:49 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void SetLength(long value)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void Write(byte[] buffer, int offset, int count)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|