Skip to content

Commit 03377c1

Browse files
authored
fix paramrefs (#10791)
1 parent c4ec88b commit 03377c1

26 files changed

+2880
-2894
lines changed

xml/Microsoft.Extensions.DependencyInjection/ISupportRequiredService.xml

-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@
5656
<returns>A service object of type <paramref name="serviceType" />.
5757
Throws an exception if the <see cref="T:System.IServiceProvider" /> cannot create the object.</returns>
5858
<remarks>To be added.</remarks>
59-
<exception cref="T:System.ObjectDisposedException">
60-
<paramref name="provider" /> has already been disposed.</exception>
6159
</Docs>
6260
</Member>
6361
</Members>

xml/System.Buffers.Text/Base64Url.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@
378378
<Docs>
379379
<param name="source">The input span which contains binary data that needs to be encoded.</param>
380380
<param name="destination">The output span which contains the result of the operation, i.e. the ASCII chars in Base64Url.</param>
381-
<summary>Encodes the span of binary data into unicode ASCII chars represented as Base64Url.</summary>
381+
<summary>Encodes the span of binary data into Unicode ASCII chars represented as Base64Url.</summary>
382382
<returns>The number of bytes written into the destination span. This can be used to slice the output for subsequent calls, if necessary.</returns>
383383
<remarks>This implementation of the base64url encoding omits the optional padding characters.</remarks>
384384
<exception cref="T:System.ArgumentException">The buffer in <paramref name="destination" /> is too small to hold the encoded output.</exception>
@@ -791,7 +791,7 @@
791791
<param name="source">The input span which contains ASCII chars in Base64Url that needs to be decoded.</param>
792792
<param name="destination">The output span which contains the result of the operation, i.e. the decoded binary data.</param>
793793
<param name="bytesWritten">When this method returns, contains the number of bytes written into the output span. This can be used to slice the output for subsequent calls, if necessary. This parameter is treated as uninitialized.</param>
794-
<summary>Decodes the span of unicode ASCII chars represented as Base64Url into binary data.</summary>
794+
<summary>Decodes the span of Unicode ASCII chars represented as Base64Url into binary data.</summary>
795795
<returns>
796796
<see langword="true" /> if bytes decoded successfully; <see langword="false" /> if <paramref name="destination" /> is too small.</returns>
797797
<remarks>To be added.</remarks>
@@ -869,7 +869,7 @@
869869
<param name="source">The input span which contains binary data that needs to be encoded.</param>
870870
<param name="destination">The output span which contains the result of the operation, i.e. the ASCII chars in Base64Url.</param>
871871
<param name="charsWritten">When this method returns, contains the number of chars written into the output span. This can be used to slice the output for subsequent calls, if necessary. This parameter is treated as uninitialized.</param>
872-
<summary>Encodes the span of binary data into unicode ASCII chars represented as Base64Url.</summary>
872+
<summary>Encodes the span of binary data into Unicode ASCII chars represented as Base64Url.</summary>
873873
<returns>
874874
<see langword="true" /> if chars encoded successfully; <see langword="false" /> if <paramref name="destination" /> is too small.</returns>
875875
<remarks>This implementation of the base64url encoding omits the optional padding characters.</remarks>
@@ -948,7 +948,7 @@
948948
<para>The encoded text output is larger than the binary data contained in the input (the operation inflates the data).</para>
949949
</summary>
950950
<returns>
951-
<see langword="true" /> if bytes encoded successfully; <see langword="false" /> if <paramref name="destination" /> is too small.</returns>
951+
<see langword="true" /> if bytes encoded successfully; <see langword="false" /> if <paramref name="buffer" /> is too small to fit the result.</returns>
952952
<remarks>This implementation of the base64url encoding omits the optional padding characters.</remarks>
953953
</Docs>
954954
</Member>

xml/System.Buffers/BuffersExtensions.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@
158158
<typeparam name="T">The type of the items in the <see cref="T:System.Buffers.ReadOnlySequence`1" />.</typeparam>
159159
<param name="source">The source <see cref="T:System.Buffers.ReadOnlySequence`1" />.</param>
160160
<param name="value">The item to find in the <see cref="T:System.Buffers.ReadOnlySequence`1" />.</param>
161-
<summary>Returns the position of the first occurrence of <paramref name="item" /> in the <see cref="T:System.Buffers.ReadOnlySequence`1" />.</summary>
162-
<returns>An object whose <see cref="M:System.SequencePosition.GetInteger" /> method returns the position of the first occurrence of <paramref name="item" />, or an object whose <see langword="Nullable&lt;SequencePosition&gt;.HasValue" /> property is <see langword="false" /> .</returns>
161+
<summary>Returns the position of the first occurrence of <paramref name="value" /> in the <see cref="T:System.Buffers.ReadOnlySequence`1" />.</summary>
162+
<returns>An object whose <see cref="M:System.SequencePosition.GetInteger" /> method returns the position of the first occurrence of <paramref name="value" />, or an object whose <see langword="Nullable&lt;SequencePosition&gt;.HasValue" /> property is <see langword="false" /> .</returns>
163163
<remarks>To be added.</remarks>
164164
</Docs>
165165
</Member>

xml/System.Collections.Concurrent/BlockingCollection`1.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,7 @@ This member is an explicit interface member implementation. It can be used only
21702170
21712171
]]></format>
21722172
</remarks>
2173-
<exception cref="T:System.ObjectDisposedException">At least one of the <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> instances or the <see cref="T:System.Threading.CancellationTokenSource" /> that created <paramref name="cancellationToken" /> has been disposed.</exception>
2173+
<exception cref="T:System.ObjectDisposedException">At least one of the <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> instances has been disposed.</exception>
21742174
<exception cref="T:System.ArgumentNullException">The <paramref name="collections" /> argument is null.</exception>
21752175
<exception cref="T:System.ArgumentOutOfRangeException">
21762176
<paramref name="timeout" /> is a negative number other than -1 milliseconds, which represents an infinite time-out.

xml/System.Collections.Concurrent/ConcurrentDictionary`2.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ The number of elements in the source <see cref="T:System.Collections.ICollection
16631663
<param name="keyValuePair">The <see cref="T:System.Collections.Generic.KeyValuePair`2" /> to remove.</param>
16641664
<summary>Removes the specified key/value pair from the collection.</summary>
16651665
<returns>
1666-
<see langword="true" /> if the element is successfully removed; otherwise, <see langword="false" />. This method also returns false if <paramref name="key" /> was not found in the original <see cref="T:System.Collections.Generic.ICollection`1" />.</returns>
1666+
<see langword="true" /> if the element is successfully removed; otherwise, <see langword="false" />. This method also returns false if the key was not found in the original <see cref="T:System.Collections.Generic.ICollection`1" />.</returns>
16671667
<remarks>To be added.</remarks>
16681668
<related type="Article" href="/dotnet/standard/collections/thread-safe/">Thread-Safe Collections</related>
16691669
<related type="Article" href="/dotnet/standard/collections/thread-safe/how-to-add-and-remove-items">How to: Add and Remove Items from a ConcurrentDictionary</related>

xml/System.Collections.Generic/Comparer`1.xml

+4-10
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,6 @@
235235
## Remarks
236236
Implement this method to provide a customized sort order comparison for type `T`.
237237
238-
239-
240238
## Examples
241239
The following example defines a comparer of `Box` objects that can be used instead of the default comparer. This example is part of a larger example provided for the <xref:System.Collections.Generic.Comparer%601> class.
242240
@@ -246,7 +244,7 @@
246244
247245
]]></format>
248246
</remarks>
249-
<exception cref="T:System.ArgumentException">Type <paramref name="T" /> does not implement either the <see cref="T:System.IComparable`1" /> generic interface or the <see cref="T:System.IComparable" /> interface.</exception>
247+
<exception cref="T:System.ArgumentException">Type <code>T</code> does not implement either the <see cref="T:System.IComparable`1" /> generic interface or the <see cref="T:System.IComparable" /> interface.</exception>
250248
<block subset="none" type="overrides">
251249
<para>Comparing <see langword="null" /> with any reference type is allowed and does not generate an exception. A null reference is considered to be less than any reference that is not null.
252250

@@ -345,16 +343,14 @@
345343
<ReturnType>System.Collections.Generic.Comparer&lt;T&gt;</ReturnType>
346344
</ReturnValue>
347345
<Docs>
348-
<summary>Returns a default sort order comparer for the type specified by the generic argument.</summary>
349-
<value>An object that inherits <see cref="T:System.Collections.Generic.Comparer`1" /> and serves as a sort order comparer for type <paramref name="T" />.</value>
346+
<summary>Returns a default sort-order comparer for the type specified by the generic argument.</summary>
347+
<value>An object that inherits <see cref="T:System.Collections.Generic.Comparer`1" /> and serves as a sort-order comparer for type <code>T</code>.</value>
350348
<remarks>
351349
<format type="text/markdown"><![CDATA[
352350
353351
## Remarks
354352
The <xref:System.Collections.Generic.Comparer%601> returned by this property uses the <xref:System.IComparable%601?displayProperty=nameWithType> generic interface (`IComparable<T>` in C#, `IComparable(Of T)` in Visual Basic) to compare two objects. If type `T` does not implement the <xref:System.IComparable%601?displayProperty=nameWithType> generic interface, this property returns a <xref:System.Collections.Generic.Comparer%601> that uses the <xref:System.IComparable?displayProperty=nameWithType> interface.
355353
356-
357-
358354
## Examples
359355
The following example shows how to use the <xref:System.Collections.Generic.Comparer%601.Default%2A> property to get an object that performs the default comparison. This example is part of a larger example provided for the <xref:System.Collections.Generic.Comparer%601> class.
360356
@@ -448,8 +444,6 @@
448444
449445
Comparing `null` with any reference type is allowed and does not generate an exception. When sorting, `null` is considered to be less than any other object.
450446
451-
452-
453447
## Examples
454448
The following example shows how to use the <xref:System.Collections.Generic.Comparer%601.System%23Collections%23IComparer%23Compare%2A> method to compare two objects. This example is part of a larger example provided for the <xref:System.Collections.Generic.Comparer%601> class.
455449
@@ -460,7 +454,7 @@
460454
]]></format>
461455
</remarks>
462456
<exception cref="T:System.ArgumentException">
463-
<paramref name="x" /> or <paramref name="y" /> is of a type that cannot be cast to type <paramref name="T" />.
457+
<paramref name="x" /> or <paramref name="y" /> is of a type that cannot be cast to type <code>T</code>.
464458

465459
-or-
466460

xml/System.Collections.Generic/Dictionary`2.xml

+3-5
Original file line numberDiff line numberDiff line change
@@ -2533,13 +2533,13 @@ finally {
25332533
<format type="text/markdown"><![CDATA[
25342534
25352535
## Remarks
2536+
25362537
You can also use the <xref:System.Collections.IDictionary.Item%2A> property to add new elements by setting the value of a key that does not exist in the dictionary; for example, `myCollection["myNonexistentKey"] = myValue`. However, if the specified key already exists in the dictionary, setting the <xref:System.Collections.IDictionary.Item%2A> property overwrites the old value. In contrast, the <xref:System.Collections.IDictionary.Add%2A> method throws an exception if the specified key already exists.
25372538
25382539
If <xref:System.Collections.Generic.Dictionary%602.Count%2A> is less than the capacity, this method approaches an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(`n`) operation, where `n` is <xref:System.Collections.Generic.Dictionary%602.Count%2A>.
25392540
2540-
2541-
25422541
## Examples
2542+
25432543
The following code example shows how to access the <xref:System.Collections.Generic.Dictionary%602> class through the <xref:System.Collections.IDictionary?displayProperty=nameWithType> interface. The code example creates an empty <xref:System.Collections.Generic.Dictionary%602> of strings with string keys and uses the <xref:System.Collections.Generic.Dictionary%602.System%23Collections%23IDictionary%23Add%2A> method to add some elements. The example demonstrates that the <xref:System.Collections.Generic.Dictionary%602.System%23Collections%23IDictionary%23Add%2A> method throws an <xref:System.ArgumentException> when attempting to add a duplicate key, or when a key or value of the wrong data type is supplied.
25442544
25452545
The code example demonstrates the use of several other members of the <xref:System.Collections.IDictionary?displayProperty=nameWithType> interface.
@@ -2907,8 +2907,6 @@ finally {
29072907
29082908
Getting or setting the value of this property approaches an O(1) operation.
29092909
2910-
2911-
29122910
## Examples
29132911
The following code example shows how to use the <xref:System.Collections.Generic.Dictionary%602.System%23Collections%23IDictionary%23Item%2A> property (the indexer in C#) of the <xref:System.Collections.IDictionary?displayProperty=nameWithType> interface with a <xref:System.Collections.Generic.Dictionary%602>, and ways the property differs from the <xref:System.Collections.Generic.Dictionary%602.Item%2A?displayProperty=nameWithType> property.
29142912
@@ -2936,7 +2934,7 @@ finally {
29362934

29372935
-or-
29382936

2939-
A value is being assigned, and <paramref name="value" /> is of a type that is not assignable to the value type <paramref name="TValue" /> of the <see cref="T:System.Collections.Generic.Dictionary`2" />.</exception>
2937+
A value is being assigned and is of a type that isn't assignable to the value type <paramref name="TValue" /> of the <see cref="T:System.Collections.Generic.Dictionary`2" />.</exception>
29402938
<altmember cref="M:System.Collections.IDictionary.Add(System.Object,System.Object)" />
29412939
</Docs>
29422940
</Member>

xml/System.Collections.Generic/HashSet`1.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ The following example demonstrates how to merge two disparate sets. This example
10331033

10341034
-or-
10351035

1036-
<paramref name="count" /> is greater than the available space from the <paramref name="index" /> to the end of the destination <paramref name="array" />.</exception>
1036+
<paramref name="count" /> is greater than the available space from <paramref name="arrayIndex" /> to the end of the destination <paramref name="array" />.</exception>
10371037
</Docs>
10381038
</Member>
10391039
<Member MemberName="Count">

xml/System.Collections.Generic/List`1.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5027,7 +5027,7 @@ finally
50275027
</remarks>
50285028
<exception cref="T:System.ArgumentOutOfRangeException">
50295029
<paramref name="index" /> is not a valid index in the <see cref="T:System.Collections.IList" />.</exception>
5030-
<exception cref="T:System.ArgumentException">The property is set and <paramref name="value" /> is of a type that is not assignable to the <see cref="T:System.Collections.IList" />.</exception>
5030+
<exception cref="T:System.ArgumentException">The property is set and the value is of a type that isn't assignable to the <see cref="T:System.Collections.IList" />.</exception>
50315031
</Docs>
50325032
</Member>
50335033
<Member MemberName="System.Collections.IList.Remove">

xml/System.Collections.Generic/OrderedDictionary`2+KeyCollection.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<param name="key">They key to the location in the collection.</param>
8989
<summary>Determines whether the <see cref="T:System.Collections.Generic.ICollection`1" /> contains a specific value.</summary>
9090
<returns>
91-
<see langword="true" /> if <paramref name="item" /> is found in the <see cref="T:System.Collections.Generic.ICollection`1" />; otherwise, <see langword="false" />.</returns>
91+
<see langword="true" /> if <paramref name="key" /> is found in the <see cref="T:System.Collections.Generic.ICollection`1" />; otherwise, <see langword="false" />.</returns>
9292
<remarks>To be added.</remarks>
9393
<inheritdoc />
9494
</Docs>

0 commit comments

Comments
 (0)