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
Copy file name to clipboardExpand all lines: xml/System.Text.Json.Serialization/JsonExtensionDataAttribute.xml
+20-4Lines changed: 20 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,24 @@
19
19
</Attribute>
20
20
</Attributes>
21
21
<Docs>
22
-
<summary>To be added.</summary>
23
-
<remarks>To be added.</remarks>
22
+
<summary>When placed on a property of type <seecref="T:System.Collections.Generic.IDictionary`2" />, any properties that do not have a matching member are added to that dictionary during deserialization and written during serialization.</summary>
23
+
<remarks>
24
+
<formattype="text/markdown">
25
+
<![CDATA[
26
+
27
+
## Remarks
28
+
29
+
The dictionary's `TKey` value must be <xref:System.String>, and `TValue` must be <xref:System.Text.Json.JsonElement> or <xref:System.Object>.
30
+
31
+
During deserialization, when using <xref:System.Object>, a "null" JSON value is treated as a `null` object reference, and when using <xref:System.Text.Json.JsonElement>, a "null" is treated as a JsonElement with <xref:System.Text.Json.JsonElement.ValueKind> set to <xref:System.Text.Json.JsonValueKind.Null?displayProperty=nameWithType>.
32
+
33
+
During serialization, the name of the extension data property is not included in the JSON; the data contained within the extension data is serialized as properties of the JSON object.
34
+
35
+
If there is more than one property on a type with this extension data attribute, or if the property itself is not of the correct <see cref="T:System.Collections.Generic.IDictionary`2" /> type, an <xref:System.InvalidOperationException> is thrown during the first serialization or deserialization of that type.
36
+
37
+
]]>
38
+
</format>
39
+
</remarks>
24
40
</Docs>
25
41
<Members>
26
42
<MemberMemberName=".ctor">
@@ -36,9 +52,9 @@
36
52
</AssemblyInfo>
37
53
<Parameters />
38
54
<Docs>
39
-
<summary>To be added.</summary>
55
+
<summary>Instantiates a new instance of the <seecref="T:System.Text.Json.Serialization.JsonExtensionDataAttribute" /> class.</summary>
Copy file name to clipboardExpand all lines: xml/System.Text.Json.Serialization/JsonPropertyNameAttribute.xml
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@
19
19
</Attribute>
20
20
</Attributes>
21
21
<Docs>
22
-
<summary>To be added.</summary>
22
+
<summary>Specifies the property name that is present in the JSON when serializing and deserializing. This overrides any naming policy specified by <seecref="T:System.Text.Json.JsonNamingPolicy" />.</summary>
23
23
<remarks>To be added.</remarks>
24
24
</Docs>
25
25
<Members>
@@ -39,8 +39,8 @@
39
39
<ParameterName="name"Type="System.String" />
40
40
</Parameters>
41
41
<Docs>
42
-
<paramname="name">To be added.</param>
43
-
<summary>To be added.</summary>
42
+
<paramname="name">The name of the property.</param>
43
+
<summary>Initializes a new instance of <seecref="T:System.Text.Json.Serialization.JsonPropertyNameAttribute" /> with the specified property name.</summary>
<summary>Gets the UTF-8 encoded representation of the pre-encoded JSON text.</summary>
136
+
<value>The UTF-8 encoded representation of the pre-encoded JSON text.</value>
123
137
<remarks>To be added.</remarks>
124
138
</Docs>
125
139
</Member>
@@ -143,9 +157,19 @@
143
157
</Parameters>
144
158
<Docs>
145
159
<paramname="obj">To be added.</param>
146
-
<summary>To be added.</summary>
147
-
<returns>To be added.</returns>
148
-
<remarks>To be added.</remarks>
160
+
<summary>Determines whether this instance and a specified object, which must also be a <seecref="T:System.Text.Json.JsonEncodedText" /> instance, have the same value.</summary>
161
+
<returns><seelangword="true" /> if the current instance and <paramrefname="obj" /> are equal; otherwise, <seelangword="false" />.</returns>
162
+
<remarks>
163
+
<formattype="text/markdown">
164
+
<![CDATA[
165
+
166
+
## Remarks
167
+
168
+
If `obj` is `null`, the method returns `false`.
169
+
170
+
]]>
171
+
</format>
172
+
</remarks>
149
173
</Docs>
150
174
</Member>
151
175
<MemberMemberName="Equals">
@@ -171,9 +195,19 @@
171
195
</Parameters>
172
196
<Docs>
173
197
<paramname="other">To be added.</param>
174
-
<summary>To be added.</summary>
175
-
<returns>To be added.</returns>
176
-
<remarks>To be added.</remarks>
198
+
<summary>Determines whether this instance and another specified <seecref="T:System.Text.Json.JsonEncodedText" /> instance have the same value.</summary>
199
+
<returns><seelangword="true" /> if this instance and <paramrefname="other" /> have the same value; otherwise, <seelangword="false" />.</returns>
200
+
<remarks>
201
+
<formattype="text/markdown">
202
+
<![CDATA[
203
+
204
+
## Remarks
205
+
206
+
Default instances of <xref:System.Text.Json.JsonEncodedText> are treated as equal.
207
+
208
+
]]>
209
+
</format>
210
+
</remarks>
177
211
</Docs>
178
212
</Member>
179
213
<MemberMemberName="GetHashCode">
@@ -193,9 +227,19 @@
193
227
</ReturnValue>
194
228
<Parameters />
195
229
<Docs>
196
-
<summary>To be added.</summary>
197
-
<returns>To be added.</returns>
198
-
<remarks>To be added.</remarks>
230
+
<summary>Returns the hash code for this <seecref="T:System.Text.Json.JsonEncodedText" />.</summary>
231
+
<returns>The hash code for this instance.</returns>
232
+
<remarks>
233
+
<formattype="text/markdown">
234
+
<![CDATA[
235
+
236
+
## Remarks
237
+
238
+
This method returns 0 on a default instance of <xref:System.Text.Json.JsonEncodedText>.
239
+
240
+
]]>
241
+
</format>
242
+
</remarks>
199
243
</Docs>
200
244
</Member>
201
245
<MemberMemberName="ToString">
@@ -215,10 +259,20 @@
215
259
</ReturnValue>
216
260
<Parameters />
217
261
<Docs>
218
-
<summary>To be added.</summary>
219
-
<returns>To be added.</returns>
220
-
<remarks>To be added.</remarks>
262
+
<summary>Converts the value of this instance to a <seecref="T:System.String" />.</summary>
0 commit comments