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.Resources.Extensions/DeserializingResourceReader.xml
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@
24
24
</Interface>
25
25
</Interfaces>
26
26
<Docs>
27
-
<summary>To be added.</summary>
27
+
<summary>Provides APIs similar to <seecref="T:System.Resources.ResourceReader" /> that can read and deserialize resource data written by either <seecref="T:System.Resources.ResourceWriter" /> or <seecref="T:System.Resources.Extensions.PreserializedResourceWriter" />.</summary>
28
28
<remarks>To be added.</remarks>
29
29
</Docs>
30
30
<Members>
@@ -43,8 +43,8 @@
43
43
<ParameterName="stream"Type="System.IO.Stream" />
44
44
</Parameters>
45
45
<Docs>
46
-
<paramname="stream">To be added.</param>
47
-
<summary>To be added.</summary>
46
+
<paramname="stream">The input stream.</param>
47
+
<summary>Initializes a new instance of the <seecref="T:System.Resources.Extensions.DeserializingResourceReader" /> class that reads the specified resources stream.</summary>
48
48
<remarks>To be added.</remarks>
49
49
</Docs>
50
50
</Member>
@@ -64,8 +64,8 @@
64
64
<ParameterName="fileName"Type="System.String" />
65
65
</Parameters>
66
66
<Docs>
67
-
<paramname="fileName">To be added.</param>
68
-
<summary>To be added.</summary>
67
+
<paramname="fileName">The path and name of the resource file to be read.</param>
68
+
<summary>Initializes a new instance of the <seecref="T:System.Resources.Extensions.DeserializingResourceReader" /> class that reads the specified named resource file.</summary>
69
69
<remarks>To be added.</remarks>
70
70
</Docs>
71
71
</Member>
@@ -86,7 +86,7 @@
86
86
</ReturnValue>
87
87
<Parameters />
88
88
<Docs>
89
-
<summary>To be added.</summary>
89
+
<summary>Releases all operating system resources associated with this <seecref="T:System.Resources.Extensions.DeserializingResourceReader" /> object.</summary>
90
90
<remarks>To be added.</remarks>
91
91
</Docs>
92
92
</Member>
@@ -110,7 +110,7 @@
110
110
</ReturnValue>
111
111
<Parameters />
112
112
<Docs>
113
-
<summary>To be added.</summary>
113
+
<summary>Releases the resources used by the <seecref="T:System.Resources.Extensions.DeserializingResourceReader" />.</summary>
114
114
<remarks>To be added.</remarks>
115
115
</Docs>
116
116
</Member>
@@ -131,8 +131,8 @@
131
131
</ReturnValue>
132
132
<Parameters />
133
133
<Docs>
134
-
<summary>To be added.</summary>
135
-
<returns>To be added.</returns>
134
+
<summary>Returns an enumerator for this <seecref="T:System.Resources.Extensions.DeserializingResourceReader" /> object.</summary>
135
+
<returns>An enumerator for this <seecref="T:System.Resources.Extensions.DeserializingResourceReader" /> object.</returns>
136
136
<remarks>To be added.</remarks>
137
137
</Docs>
138
138
</Member>
@@ -155,10 +155,10 @@
155
155
</ReturnValue>
156
156
<Parameters />
157
157
<Docs>
158
-
<summary>To be added.</summary>
159
-
<returns>To be added.</returns>
158
+
<summary>Returns an enumerator for this <seecref="T:System.Resources.Extensions.DeserializingResourceReader" /> object.</summary>
159
+
<returns>An enumerator for this <seecref="T:System.Resources.Extensions.DeserializingResourceReader" /> object.</returns>
<summary>Provides APIs similar to <seecref="T:System.Resources.ResourceWriter" /> that can write pre-serialized resource data.</summary>
25
25
<remarks>To be added.</remarks>
26
26
</Docs>
27
27
<Members>
@@ -40,9 +40,11 @@
40
40
<ParameterName="stream"Type="System.IO.Stream" />
41
41
</Parameters>
42
42
<Docs>
43
-
<paramname="stream">To be added.</param>
44
-
<summary>To be added.</summary>
43
+
<paramname="stream">The output stream.</param>
44
+
<summary>Initializes a new instance of the <seecref="T:System.Resources.Extensions.PreserializedResourceWriter" /> class that writes the resources to the provided stream.</summary>
45
45
<remarks>To be added.</remarks>
46
+
<exceptioncref="T:System.ArgumentException"><paramrefname="stream" /> is not writable.</exception>
47
+
<exceptioncref="T:System.ArgumentNullException"><paramrefname="stream" /> is <seelangword="null" />.</exception>
<summary>Initializes a new instance of the <seecref="T:System.Resources.Extensions.PreserializedResourceWriter" /> class that writes the resources to the specified file.</summary>
66
68
<remarks>To be added.</remarks>
69
+
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="fileName" /> is <seelangword="null" />.</exception>
<paramname="value">The value of the resource in <seecref="T:System.IO.Stream" /> form understood by the type's constructor.</param>
95
+
<paramname="typeName">The assembly qualified type name of the resource.</param>
96
+
<paramname="closeAfterWrite">An optional value that indicates whether, after resources have been written, the stream should be closed (<seelangword="true" />) or left open (<seelangword="false" />, the default value).</param>
97
+
<summary>Adds a resource of the specified type represented by a <seecref="T:System.IO.Stream" /> value that is passed to the type's constructor when reading the resource.</summary>
95
98
<remarks>To be added.</remarks>
99
+
<exceptioncref="T:System.ArgumentNullException"><seeparamref="name" />, <seeparamref="typeName" />, or <seeparamref="value" /> is <seelangword="null" />.</exception>
100
+
<exceptioncref="T:System.ArgumentException">The object's type is <seecref="T:System.IO.Stream" />, but it is unseekable.</exception>
96
101
</Docs>
97
102
</Member>
98
103
<MemberMemberName="AddBinaryFormattedResource">
@@ -115,11 +120,12 @@
115
120
<ParameterName="typeName"Type="System.String" />
116
121
</Parameters>
117
122
<Docs>
118
-
<paramname="name">To be added.</param>
119
-
<paramname="value">To be added.</param>
120
-
<paramname="typeName">To be added.</param>
121
-
<summary>To be added.</summary>
123
+
<paramname="name">The resource name.</param>
124
+
<paramname="value">A byte array containing the value of the resource in <seecref="T:System.Byte[]" /> form understood by <seecref="T:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter" />.</param>
125
+
<paramname="typeName">The optional assembly qualified type name of the resource. The default value is <seelangword="null" />.</param>
126
+
<summary>Adds a resource of the specified type, represented by a byte array, that will be passed to <seecref="T:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter" /> when reading the resource.</summary>
122
127
<remarks>To be added.</remarks>
128
+
<exceptioncref="T:System.ArgumentNullException"><seeparamref="name" /> or <seeparamref="value" /> is <seelangword="null" />.</exception>
123
129
</Docs>
124
130
</Member>
125
131
<MemberMemberName="AddResource">
@@ -142,10 +148,20 @@
142
148
<ParameterName="value"Type="System.Byte[]" />
143
149
</Parameters>
144
150
<Docs>
145
-
<paramname="name">To be added.</param>
146
-
<paramname="value">To be added.</param>
147
-
<summary>To be added.</summary>
148
-
<remarks>To be added.</remarks>
151
+
<paramname="name">The resource name.</param>
152
+
<paramname="value">The byte array to add as a resource.</param>
153
+
<summary>Adds a byte array as a named resource to the list of resources to be written to a file.</summary>
154
+
<remarks>
155
+
<formattype="text/markdown"><![CDATA[
156
+
157
+
## Remarks
158
+
159
+
The resources are not written until <xref:System.Resources.Extensions.PreserializedResourceWriter.Generate> is called.
160
+
161
+
]]></format>
162
+
</remarks>
163
+
<exceptioncref="T:System.ArgumentNullException">The name is <seelangword="null" />.</exception>
164
+
<exceptioncref="T:System.InvalidOperationException">The resource list is <seelangword="null" />.</exception>
149
165
</Docs>
150
166
</Member>
151
167
<MemberMemberName="AddResource">
@@ -168,10 +184,21 @@
168
184
<ParameterName="value"Type="System.Object" />
169
185
</Parameters>
170
186
<Docs>
171
-
<paramname="name">To be added.</param>
172
-
<paramname="value">To be added.</param>
173
-
<summary>To be added.</summary>
174
-
<remarks>To be added.</remarks>
187
+
<paramname="name">The resource name.</param>
188
+
<paramname="value">The object to add as a resource.</param>
189
+
<summary>Adds an object as a named resource to the list of resources to be written to a file.</summary>
190
+
<remarks>
191
+
<formattype="text/markdown"><![CDATA[
192
+
193
+
## Remarks
194
+
195
+
The resources are not written until <xref:System.Resources.Extensions.PreserializedResourceWriter.Generate> is called.
196
+
197
+
]]></format>
198
+
</remarks>
199
+
<exceptioncref="T:System.ArgumentNullException">The name is <seelangword="null" />.</exception>
200
+
<exceptioncref="T:System.InvalidOperationException">The resource list is <seelangword="null" />.</exception>
201
+
<exceptioncref="T:System.ArgumentException">The stream is unseekable.</exception>
175
202
</Docs>
176
203
</Member>
177
204
<MemberMemberName="AddResource">
@@ -194,10 +221,20 @@
194
221
<ParameterName="value"Type="System.String" />
195
222
</Parameters>
196
223
<Docs>
197
-
<paramname="name">To be added.</param>
198
-
<paramname="value">To be added.</param>
199
-
<summary>To be added.</summary>
200
-
<remarks>To be added.</remarks>
224
+
<paramname="name">The resource name.</param>
225
+
<paramname="value">The string to add as a resource.</param>
226
+
<summary>Adds a string as a named resource to the list of resources to be written to a file.</summary>
227
+
<remarks>
228
+
<formattype="text/markdown"><![CDATA[
229
+
230
+
## Remarks
231
+
232
+
The resources are not written until <xref:System.Resources.Extensions.PreserializedResourceWriter.Generate> is called.
233
+
234
+
]]></format>
235
+
</remarks>
236
+
<exceptioncref="T:System.ArgumentNullException">The name is <seelangword="null" />.</exception>
237
+
<exceptioncref="T:System.InvalidOperationException">The resource list is <seelangword="null" />.</exception>
<paramname="value">The stream to add as a resource.</param>
262
+
<paramname="closeAfterWrite">An optional value that indicates whether, after resources have been written, the stream should be closed (<seelangword="true" />) or left open (<seelangword="false" />, the default value).</param>
263
+
<summary>Adds a <seecref="T:System.IO.Stream" /> as a named resource to the list of resources to be written to a file.</summary>
264
+
<remarks>
265
+
<formattype="text/markdown"><![CDATA[
266
+
267
+
## Remarks
268
+
269
+
The resources are not written until <xref:System.Resources.Extensions.PreserializedResourceWriter.Generate> is called.
270
+
271
+
]]></format>
272
+
</remarks>
228
273
</Docs>
229
274
</Member>
230
275
<MemberMemberName="AddResource">
@@ -248,11 +293,19 @@
248
293
<ParameterName="typeName"Type="System.String" />
249
294
</Parameters>
250
295
<Docs>
251
-
<paramname="name">To be added.</param>
252
-
<paramname="value">To be added.</param>
253
-
<paramname="typeName">To be added.</param>
254
-
<summary>To be added.</summary>
255
-
<remarks>To be added.</remarks>
296
+
<paramname="name">The resource name.</param>
297
+
<paramname="value">The value of the resource in string form understood by the type's <seecref="T:System.ComponentModel.TypeConverter" />.</param>
298
+
<paramname="typeName">The assembly qualified type name of the resource.</param>
299
+
<summary>Adds a resource of the specified type represented by a string value. </summary>
300
+
<remarks>
301
+
<formattype="text/markdown"><![CDATA[
302
+
303
+
## Remarks
304
+
305
+
If the type is a primitive type, the value will be converted using <xref:System.ComponentModel.TypeConverter> by the writer to that primitive type and stored in the resources in binary format. If the type is not a primitive type, the string value will be stored in the resources as a string and converted with a <xref:System.ComponentModel.TypeConverter> for the type when reading the resource. This conversion is done to avoid activating arbitrary types during resource writing.
306
+
307
+
]]></format>
308
+
</remarks>
256
309
</Docs>
257
310
</Member>
258
311
<MemberMemberName="AddTypeConverterResource">
@@ -276,10 +329,10 @@
276
329
<ParameterName="typeName"Type="System.String" />
277
330
</Parameters>
278
331
<Docs>
279
-
<paramname="name">To be added.</param>
280
-
<paramname="value">To be added.</param>
281
-
<paramname="typeName">To be added.</param>
282
-
<summary>To be added.</summary>
332
+
<paramname="name">The resource name.</param>
333
+
<paramname="value">A byte array containing the resource in a form understood by the type's <seecref="T:System.ComponentModel.TypeConverter" />.</param>
334
+
<paramname="typeName">The assembly qualified type name of the resource.</param>
335
+
<summary>Adds a resource of the specified type represented by a byte array that is passed to the type's <seecref="T:System.ComponentModel.TypeConverter" /> when reading the resource.</summary>
283
336
<remarks>To be added.</remarks>
284
337
</Docs>
285
338
</Member>
@@ -300,8 +353,9 @@
300
353
</ReturnValue>
301
354
<Parameters />
302
355
<Docs>
303
-
<summary>To be added.</summary>
356
+
<summary>Calls <seecref="M:System.Resources.Extensions.PreserializedResourceWriter.Dispose" /> to dispose the resource writer.</summary>
304
357
<remarks>To be added.</remarks>
358
+
<exceptioncref="T:System.InvalidOperationException">The resource list is <seelangword="null" />.</exception>
305
359
</Docs>
306
360
</Member>
307
361
<MemberMemberName="Dispose">
@@ -324,8 +378,9 @@
324
378
</ReturnValue>
325
379
<Parameters />
326
380
<Docs>
327
-
<summary>To be added.</summary>
381
+
<summary>Calls <seecref="M:System.Resources.Extensions.PreserializedResourceWriter.Generate" /> to write out all resources to the output stream in the system default format.</summary>
328
382
<remarks>To be added.</remarks>
383
+
<exceptioncref="T:System.InvalidOperationException">The resource list is <seelangword="null" />.</exception>
329
384
</Docs>
330
385
</Member>
331
386
<MemberMemberName="Generate">
@@ -345,9 +400,20 @@
345
400
</ReturnValue>
346
401
<Parameters />
347
402
<Docs>
348
-
<summary>To be added.</summary>
349
-
<remarks>To be added.</remarks>
403
+
<summary>Writes all resources to the output stream.</summary>
404
+
<remarks>
405
+
<formattype="text/markdown"><![CDATA[
406
+
407
+
## Remarks
408
+
409
+
If the resources added to the writer can be represented in the system default format understood by the <xref:System.Resources.ResourceReader>, they will be written as such. If the resources require runtime deserialization other than that supported by the system default format (<xref:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter>) then we will write them using the format understood by <xref:System.Resources.Extensions.DeserializingResourceReader>.
410
+
411
+
If an exception occurs during object serialization or during IO, the .resources file is closed and deleted, since it is most likely invalid.
412
+
413
+
]]></format>
414
+
</remarks>
415
+
<exceptioncref="T:System.InvalidOperationException">The resource list is <seelangword="null" />.</exception>
0 commit comments