コード例 #1
0
        /// <inheritdoc />
        public override Task WriteAsync([NotNull] char[] buffer, int index, int count)
        {
            if (index < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(index));
            }
            if (count < 0 || (buffer.Length - index < count))
            {
                throw new ArgumentOutOfRangeException(nameof(count));
            }

            return(TargetWriter.WriteAsync(buffer, index, count));
        }
コード例 #2
0
 /// <inheritdoc />
 public override Task WriteAsync(string value)
 {
     return(TargetWriter.WriteAsync(value));
 }