Skip to content

Commit 62aa9c5

Browse files
gewarrenscottaddie
andauthored
Fix link in Remarks sections (#3728)
* fix links in remarks * fix more links in remarks * review on staging * fix warning and review on staging * Apply suggestions from Scott Co-Authored-By: Scott Addie <[email protected]>
1 parent 8c5ab5d commit 62aa9c5

File tree

12 files changed

+5019
-4840
lines changed

12 files changed

+5019
-4840
lines changed

xml/System.Collections.Immutable/ImmutableSortedSet`1.xml

Lines changed: 515 additions & 353 deletions
Large diffs are not rendered by default.

xml/System.Composition.Hosting.Core/ExportDescriptorProvider.xml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ Instances of this class are not required to be safe for concurrent access by mul
4949
<Docs>
5050
<summary>Initializes a new instance of the <see cref="T:System.Composition.Hosting.Core.ExportDescriptorProvider" /> class.</summary>
5151
<remarks>
52-
<format type="text/markdown"><![CDATA[
53-
54-
## Remarks
55-
This is a protected constructor that can only be called from derived classes.
56-
52+
<format type="text/markdown"><![CDATA[
53+
54+
## Remarks
55+
This is a protected constructor that can only be called from derived classes.
56+
5757
]]></format>
5858
</remarks>
5959
</Docs>
@@ -87,11 +87,12 @@ Instances of this class are not required to be safe for concurrent access by mul
8787
<summary>Retrieves promise export descriptors for the specified export key.</summary>
8888
<returns>A collection of promises for new export descriptors.</returns>
8989
<remarks>
90-
<format type="text/markdown"><![CDATA[
91-
92-
## Remarks
93-
A provider will only be queried once for each unique export key. The descriptor accessor can only be queried immediately if the descriptor being promised is an adapter, such as <see cref="Lazy{T}"/>; otherwise, dependencies should only be queried within execution of the function provided to the <xref:System.Composition.Hosting.Core.ExportDescriptorPromise>. The actual descriptors provided by this method, must not close over or reference any aspect of the dependency/promise structure, as this would prevent the structure from being garbage collected.
94-
90+
<format type="text/markdown"><![CDATA[
91+
92+
## Remarks
93+
94+
A provider is only queried once for each unique export key. The descriptor accessor can only be queried immediately if the descriptor being promised is an adapter, such as <xref:System.Lazy%601>. Otherwise, dependencies should only be queried within execution of the function provided to the <xref:System.Composition.Hosting.Core.ExportDescriptorPromise>. The actual descriptors provided by this method must not close over or reference any aspect of the dependency/promise structure, as this would prevent the structure from being garbage collected.
95+
9596
]]></format>
9697
</remarks>
9798
</Docs>

xml/System.Diagnostics/Activity.xml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ No `Activity` methods allow exceptions to escape as a response to bad inputs. Th
6161
<param name="operationName">The name of the operation.</param>
6262
<summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Activity" /> class.</summary>
6363
<remarks>
64-
<format type="text/markdown"><![CDATA[
64+
<format type="text/markdown"><![CDATA[
6565
6666
## Remarks
6767
@@ -123,11 +123,11 @@ Note that <xref:System.Diagnostics.Activity> has a "builder" pattern: you call t
123123
<returns>
124124
<see langword="this" /> for convenient chaining.</returns>
125125
<remarks>
126-
<format type="text/markdown"><![CDATA[
126+
<format type="text/markdown"><![CDATA[
127127
128128
## Remarks
129129
130-
This key/value pair is included in the collection returned by the <see cref="P:System.Diagnostics.Activity.Baggage" /> property, and can also be retrieved by the <xref:System.Diagnostics.Activity.GetBaggageItem%2A> method.
130+
This key/value pair is included in the collection returned by the <xref:System.Diagnostics.Activity.Baggage> property, and can also be retrieved by the <xref:System.Diagnostics.Activity.GetBaggageItem%2A> method.
131131
132132
`Baggage` is meant for information that is needed for runtime control. For information that is useful to show up in the log with the <xref:System.Diagnostics.Activity>, use the <xref:System.Diagnostics.Activity.Tags> property.
133133
@@ -169,9 +169,9 @@ This key/value pair is included in the collection returned by the <see cref="P:S
169169
170170
## Remarks
171171
172-
This key/value pair is included in the collection returned by the <see cref="P:System.Diagnostics.Activity.Tags" /> property.
172+
This key/value pair is included in the collection returned by the <xref:System.Diagnostics.Activity.Tags> property.
173173
174-
<xref:System.Diagnostics.Activity.Tags> is meant for information that is useful to log with the <xref:System.Diagnostics.Activity>. For information that is needed for runtime control, use the <xref:System.Diagnostics.Activity.Baggage> property.
174+
<xref:System.Diagnostics.Activity.Tags> is meant for information that is useful to log with the <xref:System.Diagnostics.Activity>. For information that's needed for runtime control, use the <xref:System.Diagnostics.Activity.Baggage> property.
175175
176176
]]></format>
177177
</remarks>
@@ -200,7 +200,7 @@ This key/value pair is included in the collection returned by the <see cref="P:S
200200
<summary>Gets a collection of key/value pairs that represents information that is passed to children of this <see cref="T:System.Diagnostics.Activity" />.</summary>
201201
<value>An enumeration of string-string key-value pairs.</value>
202202
<remarks>
203-
<format type="text/markdown"><![CDATA[
203+
<format type="text/markdown"><![CDATA[
204204
205205
## Remarks
206206
@@ -259,7 +259,7 @@ This key/value pair is included in the collection returned by the <see cref="P:S
259259
<summary>Gets or sets the default ID format for the <see cref="T:System.Diagnostics.Activity" />.</summary>
260260
<value>To be added.</value>
261261
<remarks>
262-
<format type="text/markdown"><![CDATA[
262+
<format type="text/markdown"><![CDATA[
263263
264264
The `Activity` instance tries to use the same format for IDs as its parent. If the activity has no parent, this property determines the default format to use.
265265
@@ -313,7 +313,7 @@ The `Activity` instance tries to use the same format for IDs as its parent. If t
313313
<value>
314314
<see langword="true" /> to always use the <see cref="P:System.Diagnostics.Activity.DefaultIdFormat" />; otherwise, <see langword="false" />.</value>
315315
<remarks>
316-
<format type="text/markdown"><![CDATA[
316+
<format type="text/markdown"><![CDATA[
317317
318318
Normally if the <xref:System.Diagnostics.Activity.ParentId> is defined, its format determines the format used by the current <xref:System.Diagnostics.Activity>. However, if `ForceDefaultFormat` is set to `true`, the ID format is always defined by the <xref:System.Diagnostics.Activity.DefaultIdFormat> property even if the <xref:System.Diagnostics.Activity.ParentId> is defined and the parent has a different format.
319319
@@ -373,7 +373,7 @@ Normally if the <xref:System.Diagnostics.Activity.ParentId> is defined, its form
373373
<summary>Gets an identifier that is specific to a particular request.</summary>
374374
<value>The activity ID.</value>
375375
<remarks>
376-
<format type="text/markdown"><![CDATA[
376+
<format type="text/markdown"><![CDATA[
377377
378378
## Remarks
379379
@@ -428,7 +428,7 @@ An ID has a hierarchical structure: `root-id.id1_id2.id3_`. The ID is generated
428428
<summary>Gets the operation name.</summary>
429429
<value>The name of the operation.</value>
430430
<remarks>
431-
<format type="text/markdown"><![CDATA[
431+
<format type="text/markdown"><![CDATA[
432432
433433
## Remarks
434434
@@ -486,13 +486,13 @@ An operation name is the *coarsest* name that is useful for grouping/filtering.
486486
<summary>Gets the ID of this activity's parent.</summary>
487487
<value>The parent ID, if one exists, or <see langword="null" /> if it does not.</value>
488488
<remarks>
489-
<format type="text/markdown"><![CDATA[
489+
<format type="text/markdown"><![CDATA[
490490
491491
## Remarks
492492
493-
If the parent for this <xref:System.Diagnostics.Activity> comes from outside the process, the <xref:System.Diagnostics.Activity> does not have a parent but *may* have a parent ID (which was deserialized from the parent).
493+
If the parent for this <xref:System.Diagnostics.Activity> comes from outside the process, the <xref:System.Diagnostics.Activity> does not have a parent but *may* have a parent ID (which was deserialized from the parent).
494494
495-
This property value can be `null` if this is a root <see cref="T:System.Diagnostics.Activity" /> (i.e. it has no <xref:System.Diagnostics.Activity.Parent>). See [Id Format](href="https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/ActivityUserGuide.md#id-format") for more details.
495+
This property value can be `null` if this is a root <xref:System.Diagnostics.Activity> (that is, it has no <xref:System.Diagnostics.Activity.Parent>). For more information, see [ID format](href="https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/ActivityUserGuide.md#id-format").
496496
497497
]]></format>
498498
</remarks>
@@ -518,7 +518,7 @@ This property value can be `null` if this is a root <see cref="T:System.Diagnost
518518
<summary>Gets the parent's <see cref="P:System.Diagnostics.Activity.SpanId" />.</summary>
519519
<value>The parent's <see cref="P:System.Diagnostics.Activity.SpanId" />.</value>
520520
<remarks>
521-
<format type="text/markdown"><![CDATA[
521+
<format type="text/markdown"><![CDATA[
522522
523523
If the <xref:System.Diagnostics.Activity.ParentId?displayProperty=nameWithType> is in the W3C format, this property returns the <xref:System.Diagnostics.Activity.SpanId> part of the ParentId. Otherwise it returns a zero <xref:System.Diagnostics.Activity.SpanId>.
524524
@@ -572,7 +572,7 @@ If the <xref:System.Diagnostics.Activity.ParentId?displayProperty=nameWithType>
572572
<summary>Gets the root ID of this <see cref="T:System.Diagnostics.Activity" />.</summary>
573573
<value>The root ID, or <see langword="null" /> if the current instance has either a <see cref="P:System.Diagnostics.Activity.ParentId" /> or an <see cref="P:System.Diagnostics.Activity.Id" />.</value>
574574
<remarks>
575-
<format type="text/markdown"><![CDATA[
575+
<format type="text/markdown"><![CDATA[
576576
577577
## Remarks
578578
@@ -637,7 +637,7 @@ The root ID is a substring from the <xref:System.Diagnostics.Activity.Id> or the
637637
<returns>
638638
<see langword="this" /> for convenient chaining.</returns>
639639
<remarks>
640-
<format type="text/markdown"><![CDATA[
640+
<format type="text/markdown"><![CDATA[
641641
642642
## Remarks
643643
@@ -675,11 +675,11 @@ The specified format will take precedence over `Parent.IdFormat`, the <xref:Syst
675675
<returns>
676676
<see langword="this" /> for convenient chaining.</returns>
677677
<remarks>
678-
<format type="text/markdown"><![CDATA[
678+
<format type="text/markdown"><![CDATA[
679679
680680
## Remarks
681681
682-
This property should only be used in 'boundary' scenarios where an <see cref="T:System.Diagnostics.Activity" /> from another process logically started this <see cref="T:System.Diagnostics.Activity" />. The `parentId` brings up the <xref:System.Diagnostics.Activity.Tags> (as well as the <xref:System.Diagnostics.Activity.ParentId> property) and can be used to reconstruct the causal tree.
682+
This property should only be used in 'boundary' scenarios where an <xref:System.Diagnostics.Activity> from another process logically started this <xref:System.Diagnostics.Activity>. The `parentId` brings up the <xref:System.Diagnostics.Activity.Tags> (as well as the <xref:System.Diagnostics.Activity.ParentId> property) and can be used to reconstruct the causal tree.
683683
684684
]]></format>
685685
</remarks>
@@ -712,7 +712,7 @@ This property should only be used in 'boundary' scenarios where an <see cref="T:
712712
<returns>
713713
<see langword="this" /> for convenient chaining.</returns>
714714
<remarks>
715-
<format type="text/markdown"><![CDATA[
715+
<format type="text/markdown"><![CDATA[
716716
717717
## Remarks
718718
@@ -799,7 +799,7 @@ This method has the advantage that no string manipulation is needed to set the I
799799
<returns>
800800
<see langword="this" /> for convenient chaining.</returns>
801801
<remarks>
802-
<format type="text/markdown"><![CDATA[
802+
<format type="text/markdown"><![CDATA[
803803
804804
## Remarks
805805
@@ -838,7 +838,7 @@ Use <xref:System.Diagnostics.DiagnosticSource.StartActivity%2A?displayProperty=n
838838
<summary>Gets the time when the operation started.</summary>
839839
<value>The UTC time that the operation started.</value>
840840
<remarks>
841-
<format type="text/markdown"><![CDATA[
841+
<format type="text/markdown"><![CDATA[
842842
843843
## Remarks
844844
@@ -954,10 +954,10 @@ Call <xref:System.Diagnostics.DiagnosticSource.StopActivity%2A?displayProperty=n
954954
<summary>Gets the W3C <see langword="tracestate" /> header.</summary>
955955
<value>The W3C <see langword="tracestate" /> header.</value>
956956
<remarks>
957-
<format type="text/markdown"><![CDATA[
957+
<format type="text/markdown"><![CDATA[
958958
959959
The `tracestate` header is intended to carry supplemental information to trace identity contained in the trace parent. `tracestate` consists of a list of key/value pairs that convey information about the request position in multiple distributed tracing graphs. This information is typically used by distributed tracing systems and should not be used for general purpose baggage, since this may break the correlation of a distributed trace.
960-
960+
961961
Logically `TraceStateString` is just a kind of baggage (if flows just like baggage), but because it is expected to be special-cased (it has its own HTTP header), it is more convenient/efficient if it is not lumped in with other baggage.
962962
963963
]]></format>

xml/System.Reflection.Metadata.Ecma335/MetadataBuilder.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ Entries must be added in the same order as the corresponding nested type definit
15221522
15231523
## Remarks
15241524
1525-
Entries should be added in the same order as the corresponding <see langword="MoveNext" /> method definitions.
1525+
Entries should be added in the same order as the corresponding `MoveNext` method definitions.
15261526
15271527
]]></format>
15281528
</remarks>

xml/System.Reflection/MetadataLoadContext.xml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<Docs>
2222
<summary>Represents a closed universe of Type objects loaded for inspection-only purposes. Each MetadataLoadContext can have its own binding rules and is isolated from all other MetadataLoadContexts.</summary>
2323
<remarks>
24-
<format type="text/markdown"><![CDATA[
24+
<format type="text/markdown"><![CDATA[
2525
2626
## Remarks
2727
@@ -81,18 +81,18 @@ Assemblies are treated strictly as metadata. There are no restrictions on loadin
8181
## Remarks
8282
8383
The core assembly is treated differently than other assemblies because references to these well-known types do not include the assembly reference, unlike normal types.
84-
84+
8585
Typically, this assembly is named "mscorlib" or "netstandard". If the core assembly cannot be found, the value will be `null`, and many other reflection methods, including those that parse method signatures, will throw an exception.
86-
86+
8787
The `CoreAssembly` is determined by passing the `coreAssemblyName` parameter passed to the <xref:System.Reflection.MetadataAssemblyResolver> constructor
8888
to the <xref:System.Reflection.MetadataAssemblyResolver.Resolve%2A?displayProperty=nameWithType> method.
8989
9090
If no `coreAssemblyName` argument was specified in the constructor of <xref:System.Reflection.MetadataLoadContext>, then default values are used, including "mscorlib", "System.Runtime" and "netstandard".
91-
91+
9292
The designated core assembly does not need to contain the core types directly. It can type forward them to other assemblies. Thus, it is perfectly permissible to use the mscorlib facade as the designated core assembly.
93-
93+
9494
Note that <xref:System.Runtime> is not an ideal core assembly because it excludes some of the interop-related pseudo-custom attribute types such as <xref:System.Runtime.InteropServices.DllImportAttribute>. However, it can serve if you have no interest in those attributes. The CustomAttributes API will skip those attributes if the core assembly does not include the necessary types.
95-
95+
9696
The core assembly is not loaded until necessary. The following APIs do not trigger the search for the core assembly:
9797
9898
* <xref:System.Reflection.MetadataLoadContext.LoadFromStream%2A?displayProperty=nameWithType>
@@ -109,9 +109,9 @@ The core assembly is not loaded until necessary. The following APIs do not trigg
109109
* <xref:System.Type.Name?displayProperty=nameWithType>
110110
* <xref:System.Type.FullName?displayProperty=nameWithType>
111111
* <xref:System.Type.AssemblyQualifiedName?displayProperty=nameWithType>
112-
112+
113113
If a core assembly cannot be found or if the core assembly is missing types, this will affect the behavior of the <xref:System.Reflection.MetadataLoadContext> as follows:
114-
114+
115115
* APIs that need to parse signatures or typespecs and return the results as <xref:System.Type> objects will throw an exception. For example:
116116
117117
* <xref:System.Reflection.MethodInfo.ReturnType?displayProperty=nameWithType>
@@ -120,7 +120,7 @@ If a core assembly cannot be found or if the core assembly is missing types, thi
120120
* <xref:System.Type.GetInterfaces%2A?displayProperty=nameWithType>
121121
122122
* APIs that need to compare types to well-known core types will not throw an exception, and the comparison will evaluate to `false`. For example, if you do not specify a core assembly, <xref:System.Type.IsPrimitive> will return `false` for everything, even types named <xref:System.Int32>. Similarly, <xref:System.Type.GetTypeCode%2A?displayProperty=nameWithType> will return <xref:System.TypeCode.Object> for everything.
123-
123+
124124
* If a metadata entity sets flags that surface as a pseudo-custom attribute, and the core assembly does not contain the pseudo-custom attribute type, the necessary constructor or any of the parameter types of the constructor, the <xref:System.Reflection.MetadataLoadContext> will not throw. It will omit the pseudo-custom attribute from the list of returned attributes.
125125
]]></format>
126126
</remarks>
@@ -149,7 +149,7 @@ If a core assembly cannot be found or if the core assembly is missing types, thi
149149
<Docs>
150150
<summary>Releases any native resources (such as file locks on assembly files). </summary>
151151
<remarks>
152-
<format type="text/markdown"><![CDATA[
152+
<format type="text/markdown"><![CDATA[
153153
154154
After disposal, it is not safe to use any <xref:System.Reflection.Assembly> objects dispensed by the <xref:System.Reflection.MetadataLoadContext> or any reflection objects dispensed by those <xref:System.Reflection.Assembly> objects.
155155
@@ -208,7 +208,8 @@ Some APIs may return fixed or previously cached data. Accessing objects *during*
208208
<remarks>
209209
<format type="text/markdown"><![CDATA[
210210
## Remarks
211-
Note that the behavior of this method matches the behavior of the <xref:System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName%2A?displayProperty=nameWithType> resolve event but does not match the behavior of <xref:System.Reflection.Assembly.ReflectionOnlyLoad%2A?displayProperty=nameWithType>. (The latter gives up without raising its resolve event.)
211+
212+
Note that the behavior of this method matches the behavior of the <xref:System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName%2A?displayProperty=nameWithType> resolve event, but does not match the behavior of <xref:System.Reflection.Assembly.ReflectionOnlyLoad%2A?displayProperty=nameWithType>. (The latter gives up without raising its resolve event.)
212213
]]></format>
213214
</remarks>
214215
<exception cref="T:System.IO.FileNotFoundException">The resolver returns <see langword="null" />.</exception>

0 commit comments

Comments
 (0)