You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clarify that the array passed to ByteArrayContent should not be modified. (#8484)
* Clarify that the array passed to ByteArrayContent should not be modified.
* Update xml/System.Net.Http/ByteArrayContent.xml
Co-authored-by: Marie Píchová <[email protected]>
Co-authored-by: Marie Píchová <[email protected]>
Copy file name to clipboardExpand all lines: xml/System.Net.Http/ByteArrayContent.xml
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,14 @@
79
79
<Docs>
80
80
<paramname="content">The content used to initialize the <seecref="T:System.Net.Http.ByteArrayContent" />.</param>
81
81
<summary>Initializes a new instance of the <seecref="T:System.Net.Http.ByteArrayContent" /> class.</summary>
82
-
<remarks>To be added.</remarks>
82
+
<remarks>
83
+
<formattype="text/markdown"><![CDATA[
84
+
85
+
## Remarks
86
+
The <xref:System.Net.Http.ByteArrayContent> class does not internally copy the provided byte array but keeps a reference to it instead. Callers should not modify the data in the array until the content is sent.
87
+
88
+
]]></format>
89
+
</remarks>
83
90
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="content" /> parameter is <seelangword="null" />.</exception>
84
91
</Docs>
85
92
</Member>
@@ -122,7 +129,9 @@
122
129
<formattype="text/markdown"><![CDATA[
123
130
124
131
## Remarks
125
-
Only the range specified by the `offset` parameter and the `count` parameter is used as content. Syntax
132
+
The <xref:System.Net.Http.ByteArrayContent> class does not internally copy the provided byte array but keeps a reference to it instead. Callers should not modify the data in the array until the content is sent.
133
+
134
+
Only the range specified by the `offset` parameter and the `count` parameter is used as content.
0 commit comments