dotnet / dotnet/dotnet-api-docs
System.IO.StreamWriter Constructor with BufferSize Argument
- Ngôn ngữ chính
- C#
- Star
- 949
- Fork
- 1.7k
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 52
Mô tả
The documentation for `public StreamWriter (System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize)` states that an `ArgumentOutOfRangeException` will be thrown if _`bufferSize` is negative_. That statement is incorrect as it implies that a value of zero will not throw an exception. The corresponding documentation for `public StreamReader (System.IO.Stream stream, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize)` is correct as it states that an `ArgumentOutOfRangeException` will be thrown if _`bufferSize` is less than or equal to zero._
[public StreamWriter (System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize)](https://docs.microsoft.com/en-us/dotnet/api/system.io.streamwriter.-ctor?view=netframework-4.8#System_IO_StreamWriter__ctor_System_IO_Stream_System_Text_Encoding_System_Int32_)
Hướng dẫn đóng góp
Hướng nghiên cứu
Mở tài liệu được liên kết của constructor StreamWriter và so sánh cách diễn đạt về exception của bufferSize với tài liệu tương ứng của constructor StreamReader. Xác nhận rằng điều kiện được ghi trong tài liệu khớp với hành vi của API và trang được render nêu rõ trường hợp giá trị bằng không; issue hoàn tất khi cách diễn đạt không đúng được sửa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp
- Lĩnh vực
- documentation
- Loại issue
- Tài liệu
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 62/100