Skip to content

Commit 3a681d1

Browse files
carlossanlopmairaw
authored andcommitted
Port System.Reflection.Metadata source code comments to Docs (L-Metadata* files) (#2333)
* Port System.Reflection.Metadata source code comments to Docs (L-Metadata* files) * Proper language for a struct with default value. * Apply suggestions from code review Suggestions provided by mairaw Co-Authored-By: carlossanlop <[email protected]> * Addressed mairaw comments.
1 parent c1b537c commit 3a681d1

9 files changed

+144
-95
lines changed

xml/System.Reflection.Metadata/LocalConstant.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@
7272
<ReturnType>System.Reflection.Metadata.BlobHandle</ReturnType>
7373
</ReturnValue>
7474
<Docs>
75-
<summary>To be added.</summary>
76-
<value>To be added.</value>
75+
<summary>Gets the constant signature.</summary>
76+
<value>The constant signature.</value>
7777
<remarks>To be added.</remarks>
7878
</Docs>
7979
</Member>
8080
</Members>
81-
</Type>
81+
</Type>

xml/System.Reflection.Metadata/ManifestResource.xml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
<ReturnType>System.Reflection.ManifestResourceAttributes</ReturnType>
5050
</ReturnValue>
5151
<Docs>
52-
<summary>To be added.</summary>
53-
<value>To be added.</value>
52+
<summary>Gets the manifest resource attributes.</summary>
53+
<value>A bitwise combination of the enumeration values that specify the manifest resource atttributes.</value>
5454
<remarks>To be added.</remarks>
5555
</Docs>
5656
</Member>
@@ -102,8 +102,10 @@
102102
<ReturnType>System.Reflection.Metadata.EntityHandle</ReturnType>
103103
</ReturnValue>
104104
<Docs>
105-
<summary>To be added.</summary>
106-
<value>To be added.</value>
105+
<summary>
106+
Gets the implementation entity handle.
107+
</summary>
108+
<value>An EntityHandle instance. If the <see cref="P:System.Reflection.Metadata.EntityHandle.IsNil" /> property is <see langword="true" />, the returned handle will have default values.</value>
107109
<remarks>To be added.</remarks>
108110
</Docs>
109111
</Member>
@@ -128,8 +130,8 @@
128130
<ReturnType>System.Reflection.Metadata.StringHandle</ReturnType>
129131
</ReturnValue>
130132
<Docs>
131-
<summary>To be added.</summary>
132-
<value>To be added.</value>
133+
<summary>Gets the resource name.</summary>
134+
<value>The resource name.</value>
133135
<remarks>To be added.</remarks>
134136
</Docs>
135137
</Member>
@@ -154,10 +156,10 @@
154156
<ReturnType>System.Int64</ReturnType>
155157
</ReturnValue>
156158
<Docs>
157-
<summary>To be added.</summary>
158-
<value>To be added.</value>
159+
<summary>Gets the byte offset within the referenced file at which this resource record begins.</summary>
160+
<value>The byte offset within the referenced file at which this resource record begins.</value>
159161
<remarks>To be added.</remarks>
160162
</Docs>
161163
</Member>
162164
</Members>
163-
</Type>
165+
</Type>

xml/System.Reflection.Metadata/MemberReference.xml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,10 @@
205205
</ReturnValue>
206206
<Parameters />
207207
<Docs>
208-
<summary>To be added.</summary>
209-
<returns>To be added.</returns>
208+
<summary>Determines if the member reference is to a method or field.</summary>
209+
<returns>One of the enumeration values that indicates the kind of member reference.</returns>
210210
<remarks>To be added.</remarks>
211+
<exception cref="T:System.BadImageFormatException">The member reference signature is invalid.</exception>
211212
</Docs>
212213
</Member>
213214
<Member MemberName="Name">
@@ -257,8 +258,8 @@
257258
<ReturnType>System.Reflection.Metadata.EntityHandle</ReturnType>
258259
</ReturnValue>
259260
<Docs>
260-
<summary>To be added.</summary>
261-
<value>To be added.</value>
261+
<summary>Gets the parent entity handle.</summary>
262+
<value>An entity handle instance. If the <see cref="P:System.Reflection.Metadata.EntityHandle.IsNil" /> property is <see langword="true" />, the returned handle will have default values.</value>
262263
<remarks>To be added.</remarks>
263264
</Docs>
264265
</Member>
@@ -283,10 +284,10 @@
283284
<ReturnType>System.Reflection.Metadata.BlobHandle</ReturnType>
284285
</ReturnValue>
285286
<Docs>
286-
<summary>To be added.</summary>
287-
<value>To be added.</value>
287+
<summary>Gets a handle to the signature blob.</summary>
288+
<value>A handle to the signature blob.</value>
288289
<remarks>To be added.</remarks>
289290
</Docs>
290291
</Member>
291292
</Members>
292-
</Type>
293+
</Type>

xml/System.Reflection.Metadata/MetadataKind.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</ReturnValue>
4545
<MemberValue>0</MemberValue>
4646
<Docs>
47-
<summary>To be added.</summary>
47+
<summary>CLI metadata.</summary>
4848
</Docs>
4949
</Member>
5050
<Member MemberName="ManagedWindowsMetadata">
@@ -69,7 +69,7 @@
6969
</ReturnValue>
7070
<MemberValue>2</MemberValue>
7171
<Docs>
72-
<summary>To be added.</summary>
72+
<summary>Windows metadata generated by managed compilers.</summary>
7373
</Docs>
7474
</Member>
7575
<Member MemberName="WindowsMetadata">
@@ -94,8 +94,8 @@
9494
</ReturnValue>
9595
<MemberValue>1</MemberValue>
9696
<Docs>
97-
<summary>To be added.</summary>
97+
<summary>Windows metadata.</summary>
9898
</Docs>
9999
</Member>
100100
</Members>
101-
</Type>
101+
</Type>

xml/System.Reflection.Metadata/MetadataReader.xml

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<Docs>
4747
<param name="metadata">To be added.</param>
4848
<param name="length">To be added.</param>
49-
<summary>To be added.</summary>
49+
<summary>Initializes a new instance of the <see cref="T:System.Reflection.Metadata.MetadataReader" /> class from the metadata stored at the given memory location.</summary>
5050
<remarks>To be added.</remarks>
5151
</Docs>
5252
</Member>
@@ -75,7 +75,7 @@
7575
<param name="metadata">To be added.</param>
7676
<param name="length">To be added.</param>
7777
<param name="options">To be added.</param>
78-
<summary>To be added.</summary>
78+
<summary>Initializes a new instance of the <see cref="T:System.Reflection.Metadata.MetadataReader" /> class from the metadata stored at the given memory location.</summary>
7979
<remarks>To be added.</remarks>
8080
</Docs>
8181
</Member>
@@ -106,8 +106,13 @@
106106
<param name="length">To be added.</param>
107107
<param name="options">To be added.</param>
108108
<param name="utf8Decoder">To be added.</param>
109-
<summary>To be added.</summary>
109+
<summary>Initializes a new instance of the <see cref="T:System.Reflection.Metadata.MetadataReader" /> class from the metadata stored at the given memory location.</summary>
110110
<remarks>To be added.</remarks>
111+
<exception cref="T:System.ArgumentOutOfRangeException"><paramref name="length" /> is not positive.</exception>
112+
<exception cref="T:System.ArgumentNullException"><paramref name="metadata" /> is <see langword="null" />.</exception>
113+
<exception cref="T:System.ArgumentException">The encoding of <paramref name="utf8Decoder" /> is not <see cref="T:System.Text.UTF8Encoding" />.</exception>
114+
<exception cref="T:System.PlatformNotSupportedException">The current platform is big-endian.</exception>
115+
<exception cref="T:System.BadImageFormatException">Bad metadata header.</exception>
111116
</Docs>
112117
</Member>
113118
<Member MemberName="AssemblyFiles">
@@ -233,8 +238,8 @@
233238
<ReturnType>System.Reflection.Metadata.DebugMetadataHeader</ReturnType>
234239
</ReturnValue>
235240
<Docs>
236-
<summary>To be added.</summary>
237-
<value>To be added.</value>
241+
<summary>Gets the information decoded from #Pdb stream, or <see langword="null" /> if the stream is not present.</summary>
242+
<value>The information decoded from #Pdb stream, or <see langword="null" /> if the stream is not present.</value>
238243
<remarks>To be added.</remarks>
239244
</Docs>
240245
</Member>
@@ -1830,8 +1835,8 @@
18301835
<ReturnType>System.Boolean</ReturnType>
18311836
</ReturnValue>
18321837
<Docs>
1833-
<summary>To be added.</summary>
1834-
<value>To be added.</value>
1838+
<summary>Gets a value that indicates whether the metadata represents an assembly.</summary>
1839+
<value><see langword="true" /> if the metadata represents an assembly; otherwise, <see langword="false" />.</value>
18351840
<remarks>To be added.</remarks>
18361841
</Docs>
18371842
</Member>
@@ -1983,8 +1988,8 @@
19831988
<ReturnType>System.Reflection.Metadata.MetadataKind</ReturnType>
19841989
</ReturnValue>
19851990
<Docs>
1986-
<summary>To be added.</summary>
1987-
<value>To be added.</value>
1991+
<summary>Gets the metadata kind.</summary>
1992+
<value>One of the enumeration values that specifies the metadata kind.</value>
19881993
<remarks>To be added.</remarks>
19891994
</Docs>
19901995
</Member>
@@ -2007,8 +2012,8 @@
20072012
<ReturnType>System.Int32</ReturnType>
20082013
</ReturnValue>
20092014
<Docs>
2010-
<summary>To be added.</summary>
2011-
<value>To be added.</value>
2015+
<summary>Gets the length of the underlying data.</summary>
2016+
<value>The length of the underlying data.</value>
20122017
<remarks>To be added.</remarks>
20132018
</Docs>
20142019
</Member>
@@ -2030,8 +2035,8 @@
20302035
<ReturnType>System.Byte*</ReturnType>
20312036
</ReturnValue>
20322037
<Docs>
2033-
<summary>To be added.</summary>
2034-
<value>To be added.</value>
2038+
<summary>Gets the pointer to the underlying data.</summary>
2039+
<value>The pointer to the underlying data.</value>
20352040
<remarks>To be added.</remarks>
20362041
</Docs>
20372042
</Member>
@@ -2056,8 +2061,8 @@
20562061
<ReturnType>System.String</ReturnType>
20572062
</ReturnValue>
20582063
<Docs>
2059-
<summary>To be added.</summary>
2060-
<value>To be added.</value>
2064+
<summary>Gets the version string read from metadata header.</summary>
2065+
<value>The version string read from metadata header.</value>
20612066
<remarks>To be added.</remarks>
20622067
</Docs>
20632068
</Member>
@@ -2133,8 +2138,8 @@
21332138
<ReturnType>System.Reflection.Metadata.MetadataReaderOptions</ReturnType>
21342139
</ReturnValue>
21352140
<Docs>
2136-
<summary>To be added.</summary>
2137-
<value>To be added.</value>
2141+
<summary>Gets the <see cref="F:System.Reflection.Metadata.MetadataReaderOptions" /> passed to the constructor.</summary>
2142+
<value>A bitwise combination of the enumeration values that describes the <see cref="F:System.Reflection.Metadata.MetadataReaderOptions" /> enum value.</value>
21382143
<remarks>To be added.</remarks>
21392144
</Docs>
21402145
</Member>
@@ -2185,8 +2190,8 @@
21852190
<ReturnType>System.Reflection.Metadata.MetadataStringComparer</ReturnType>
21862191
</ReturnValue>
21872192
<Docs>
2188-
<summary>To be added.</summary>
2189-
<value>To be added.</value>
2193+
<summary>Gets the comparer used to compare strings stored in metadata.</summary>
2194+
<value>The comparer used to compare strings stored in metadata.</value>
21902195
<remarks>To be added.</remarks>
21912196
</Docs>
21922197
</Member>
@@ -2261,10 +2266,10 @@
22612266
<ReturnType>System.Reflection.Metadata.MetadataStringDecoder</ReturnType>
22622267
</ReturnValue>
22632268
<Docs>
2264-
<summary>To be added.</summary>
2265-
<value>To be added.</value>
2269+
<summary>Gets the decoder used by the reader to produce string instances from UTF8-encoded byte sequences.</summary>
2270+
<value>The decoder used by the reader to produce string instances from UTF8-encoded byte sequences.</value>
22662271
<remarks>To be added.</remarks>
22672272
</Docs>
22682273
</Member>
22692274
</Members>
2270-
</Type>
2275+
</Type>

xml/System.Reflection.Metadata/MetadataReaderOptions.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</ReturnValue>
5050
<MemberValue>1</MemberValue>
5151
<Docs>
52-
<summary>To be added.</summary>
52+
<summary>Windows Runtime projections are enabled (on by default).</summary>
5353
</Docs>
5454
</Member>
5555
<Member MemberName="Default">
@@ -74,7 +74,7 @@
7474
</ReturnValue>
7575
<MemberValue>1</MemberValue>
7676
<Docs>
77-
<summary>To be added.</summary>
77+
<summary>The options that are used when a <see cref="T:System.Reflection.Metadata.MetadataReader" /> is obtained via an overload that does not take a <see cref="T:System.Reflection.Metadata.MetadataReaderOptions" /> argument.</summary>
7878
</Docs>
7979
</Member>
8080
<Member MemberName="None">
@@ -99,7 +99,7 @@
9999
</ReturnValue>
100100
<MemberValue>0</MemberValue>
101101
<Docs>
102-
<summary>To be added.</summary>
102+
<summary>All options are disabled.</summary>
103103
</Docs>
104104
</Member>
105105
</Members>

0 commit comments

Comments
 (0)