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
Add some missing Json exceptions, fix spacing. (#3150)
* Add some missing Json exceptions, fix spacing.
* readd new line
* remove bom character
* bom + new line + style guide
* bom + new line
* bom + new line
* bom + new line
* bom + new line
Copy file name to clipboardExpand all lines: xml/System.Text.Json/JsonDocument.xml
+30-33Lines changed: 30 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -77,17 +77,18 @@ This class utilizes resources from pooled memory to minimize the impact of the g
77
77
<returns>A JsonDocument representation of the JSON value.</returns>
78
78
<remarks>
79
79
<format><![CDATA[
80
+
81
+
## Remarks
82
+
80
83
The <xref:System.Buffers.ReadOnlySequence%601> may be used for the entire lifetime of the JsonDocument object, and the caller must ensure that the data therein does not change during the object lifetime.
81
84
Because the input is considered to be text, a UTF-8 Byte-Order-Mark (BOM) must not be present.
@@ -288,6 +279,8 @@ The <xref:System.ReadOnlyMemory%601> value may be used for the entire lifetime o
288
279
<remarks>
289
280
<format><![CDATA[
290
281
282
+
## Remarks
283
+
291
284
If the <xref:System.Text.Json.Utf8JsonReader.TokenType> property of `reader` is <xref:System.Text.Json.JsonTokenType.PropertyName?displayProperty=nameWithType> or <xref:System.Text.Json.JsonTokenType.None?displayProperty=nameWithType>, the reader will advance by one call to <xref:System.Text.Json.Utf8JsonReader.Read?displayProperty=nameWithType> to determine the start of the value.
292
285
293
286
Upon completion of this method, `reader` is positioned at the final token in the JSON value. If an exception is thrown, the reader is reset to
@@ -299,10 +292,11 @@ This method makes a copy of the data the reader acted on, so there is no caller
The current <paramrefname="reader" /> token does not start or represent a value.</exception>
299
+
<exceptioncref="T:System.Text.Json.JsonException">A value could not be read from the reader.</exception>
306
300
</Docs>
307
301
</Member>
308
302
<MemberMemberName="RootElement">
@@ -353,7 +347,9 @@ This method makes a copy of the data the reader acted on, so there is no caller
353
347
<seelangword="true" /> if a value was read and parsed into a JsonDocument; <seelangword="false" /> if the reader ran out of data while parsing. All other situations result in an exception being thrown.</returns>
354
348
<remarks>
355
349
<format><![CDATA[
356
-
350
+
351
+
## Remarks
352
+
357
353
If the <xref:System.Text.Json.Utf8JsonReader.TokenType> property of `reader` is <xref:System.Text.Json.JsonTokenType.PropertyName?displayProperty=nameWithType> or <xref:System.Text.Json.JsonTokenType.None?displayProperty=nameWithType>, the reader will advance by one call to <xref:System.Text.Json.Utf8JsonReader.Read?displayProperty=nameWithType> to determine the start of the value.
358
354
359
355
Upon completion of this method, `reader` is positioned at the final token in the JSON value. If an exception is thrown or `false`
@@ -365,10 +361,11 @@ This method makes a copy of the data the reader acted on, so there is no caller
0 commit comments