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
{{ message }}
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
* Fix Utf8JsonWriter xml docs
* PR Feedback
* PR Feedback
* PR Feedback put back remarks for ROS/string overrides
* Remove duplicate remarks
* PR Feedback
* PR Feedback, i.e. -> that is
Copy file name to clipboardExpand all lines: src/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.DateTimeOffset.cs
+11-12Lines changed: 11 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -13,14 +13,13 @@ public sealed partial class Utf8JsonWriter
13
13
/// <summary>
14
14
/// Writes the pre-encoded property name and <see cref="DateTimeOffset"/> value (as a JSON string) as part of a name/value pair of a JSON object.
15
15
/// </summary>
16
-
/// <param name="propertyName">The JSONencoded property name of the JSON object to be transcoded and written as UTF-8.</param>
17
-
/// <param name="value">The value to be written as a JSON string as part of the name/value pair.</param>
16
+
/// <param name="propertyName">The JSON-encoded name of the property to write.</param>
17
+
/// <param name="value">The value to to write.</param>
18
18
/// <exception cref="InvalidOperationException">
19
-
/// Thrown if this would result in an invalid JSON to be written (while validation is enabled).
19
+
/// Thrown if this would result in invalid JSON being written (while validation is enabled).
20
20
/// </exception>
21
21
/// <remarks>
22
22
/// Writes the <see cref="DateTimeOffset"/> using the round-trippable ('O') <see cref="StandardFormat"/> , for example: 2017-06-12T05:30:45.7680000-07:00.
23
-
/// The property name should already be escaped when the instance of <see cref="JsonEncodedText"/> was created.
/// Writes the property name and <see cref="DateTimeOffset"/> value (as a JSON string) as part of a name/value pair of a JSON object.
40
39
/// </summary>
41
-
/// <param name="propertyName">The property name of the JSON object to be transcoded and written as UTF-8.</param>
42
-
/// <param name="value">The value to be written as a JSON string as part of the name/value pair.</param>
40
+
/// <param name="propertyName">The name of the property to write.</param>
41
+
/// <param name="value">The value to to write.</param>
43
42
/// <exception cref="ArgumentException">
44
43
/// Thrown when the specified property name is too large.
45
44
/// </exception>
46
45
/// <exception cref="ArgumentNullException">
47
46
/// The <paramref name="propertyName"/> parameter is <see langword="null"/>.
48
47
/// </exception>
49
48
/// <exception cref="InvalidOperationException">
50
-
/// Thrown if this would result in an invalid JSON to be written (while validation is enabled).
49
+
/// Thrown if this would result in invalid JSON being written (while validation is enabled).
51
50
/// </exception>
52
51
/// <remarks>
53
52
/// Writes the <see cref="DateTimeOffset"/> using the round-trippable ('O') <see cref="StandardFormat"/> , for example: 2017-06-12T05:30:45.7680000-07:00.
@@ -59,13 +58,13 @@ public void WriteString(string propertyName, DateTimeOffset value)
59
58
/// <summary>
60
59
/// Writes the property name and <see cref="DateTimeOffset"/> value (as a JSON string) as part of a name/value pair of a JSON object.
61
60
/// </summary>
62
-
/// <param name="propertyName">The property name of the JSON object to be transcoded and written as UTF-8.</param>
63
-
/// <param name="value">The value to be written as a JSON string as part of the name/value pair.</param>
61
+
/// <param name="propertyName">The name of the property to write.</param>
62
+
/// <param name="value">The value to to write.</param>
64
63
/// <exception cref="ArgumentException">
65
64
/// Thrown when the specified property name is too large.
66
65
/// </exception>
67
66
/// <exception cref="InvalidOperationException">
68
-
/// Thrown if this would result in an invalid JSON to be written (while validation is enabled).
67
+
/// Thrown if this would result in invalid JSON being written (while validation is enabled).
69
68
/// </exception>
70
69
/// <remarks>
71
70
/// Writes the <see cref="DateTimeOffset"/> using the round-trippable ('O') <see cref="StandardFormat"/> , for example: 2017-06-12T05:30:45.7680000-07:00.
@@ -85,12 +84,12 @@ public void WriteString(ReadOnlySpan<char> propertyName, DateTimeOffset value)
85
84
/// Writes the property name and <see cref="DateTimeOffset"/> value (as a JSON string) as part of a name/value pair of a JSON object.
86
85
/// </summary>
87
86
/// <param name="utf8PropertyName">The UTF-8 encoded property name of the JSON object to be written.</param>
88
-
/// <param name="value">The value to be written as a JSON string as part of the name/value pair.</param>
87
+
/// <param name="value">The value to to write.</param>
89
88
/// <exception cref="ArgumentException">
90
89
/// Thrown when the specified property name is too large.
91
90
/// </exception>
92
91
/// <exception cref="InvalidOperationException">
93
-
/// Thrown if this would result in an invalid JSON to be written (while validation is enabled).
92
+
/// Thrown if this would result in invalid JSON being written (while validation is enabled).
94
93
/// </exception>
95
94
/// <remarks>
96
95
/// Writes the <see cref="DateTimeOffset"/> using the round-trippable ('O') <see cref="StandardFormat"/> , for example: 2017-06-12T05:30:45.7680000-07:00.
0 commit comments