Skip to content

Commit 9ee98a0

Browse files
author
Ron Petrusha
authored
Update JsonElement.xml
1 parent 663a3ba commit 9ee98a0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

xml/System.Text.Json/JsonElement.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,20 +170,20 @@ This method does not parse the contents of a JSON string value.
170170
</ReturnValue>
171171
<Parameters />
172172
<Docs>
173-
<summary>Gets the value of the element as bytes.</summary>
174-
<returns>The value decode to bytes.</returns>
173+
<summary>Gets the value of the element as a byte array.</summary>
174+
<returns>The value decoded as a byte array.</returns>
175175
<remarks>
176176
<format type="text/markdown">
177177
<![CDATA[
178178
179179
## Remarks
180180
181-
This method does not create a byte[] representation of values other than base 64 encoded JSON strings.
181+
This method does not create a byte representation of values other than base 64-encoded JSON strings.
182182
183183
]]>
184184
</format>
185185
</remarks>
186-
<exception cref="T:System.InvalidOperationException">This value's <see cref="P:System.Text.Json.JsonElement.ValueKind" /> is not <see cref="F:System.Text.Json.JsonValueKind.String" />.</exception>
186+
<exception cref="T:System.InvalidOperationException">This value's <see cref="P:System.Text.Json.JsonElement.Type" /> is not <see cref="F:System.Text.Json.JsonValueType.String" />.</exception>
187187
<exception cref="T:System.FormatException">The value is not encoded as base 64 text and hence cannot be decoded to bytes.</exception>
188188
<exception cref="T:System.ObjectDisposedException">The parent <see cref="T:System.Text.Json.JsonDocument" /> has been disposed.</exception>
189189
</Docs>
@@ -752,8 +752,8 @@ For other types, the value of <xref:System.Text.Json.JsonElement.GetRawText> is
752752
<Parameter Name="value" Type="System.Byte[]" RefType="out" />
753753
</Parameters>
754754
<Docs>
755-
<param name="value">Receives the value.</param>
756-
<summary>Attempts to represent the current JSON string as bytes assuming it is base 64 encoded.</summary>
755+
<param name="value">When the method returns, contains the byte representation of <paramref name="value" /> if the method succeeded.</param>
756+
<summary>Attempts to represent the current JSON string as a byte array, assuming that it is base 64-encoded.</summary>
757757
<returns>
758758
<see langword="true" /> if the entire token value is encoded as valid base 64 text and can be successfully decoded to bytes.
759759
<see langword="false" /> otherwise.</returns>
@@ -763,12 +763,12 @@ For other types, the value of <xref:System.Text.Json.JsonElement.GetRawText> is
763763
764764
## Remarks
765765
766-
This method does not create a byte[] representation of values other than bsae 64 encoded JSON strings.
766+
This method does not create a byte array representation of values other than bsae 64-encoded JSON strings.
767767
768768
]]>
769769
</format>
770770
</remarks>
771-
<exception cref="T:System.InvalidOperationException">This value's <see cref="P:System.Text.Json.JsonElement.ValueKind" /> is not <see cref="F:System.Text.Json.JsonValueKind.String" />.</exception>
771+
<exception cref="T:System.InvalidOperationException">This value's <see cref="P:System.Text.Json.JsonElement.Type" /> is not <see cref="F:System.Text.Json.JsonValueType.String" />.</exception>
772772
<exception cref="T:System.ObjectDisposedException">The parent <see cref="T:System.Text.Json.JsonDocument" /> has been disposed.</exception>
773773
</Docs>
774774
</Member>
@@ -1372,4 +1372,4 @@ This method does not parse the contents of a JSON string value.
13721372
</Docs>
13731373
</Member>
13741374
</Members>
1375-
</Type>
1375+
</Type>

0 commit comments

Comments
 (0)