コード例 #1
0
 public override int Read(byte[] buffer, int index, int count)
 {
     using (_stream.DoNotConvert())
     {
         return(base.Read(buffer, index, count));
     }
 }
コード例 #2
0
        public override void Write(byte[] buffer)
        {
            if (buffer == null)
            {
                throw new ArgumentNullException(nameof(buffer));
            }

            using (_stream.DoNotConvert())
            {
                base.Write(buffer);
            }
        }