Skip to content

Fix mismatched paramrefs (System.T*) #11156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xml/System.Text.RegularExpressions/GroupCollection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ This member is an explicit interface member implementation. It can be used only
<Docs>
<param name="value">The group to locate in the group collection.</param>
<summary>Determines the index of a specific group in the group collection.</summary>
<returns>The index of the <paramref name="item" /> if found; otherwise, -1.</returns>
<returns>The index of the <paramref name="value" /> if found; otherwise, -1.</returns>
<remarks>
<format type="text/markdown"><![CDATA[

Expand Down
736 changes: 364 additions & 372 deletions xml/System.Text/ASCIIEncoding.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions xml/System.Text/Decoder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ The following example uses the <xref:System.Text.Encoder.Convert%2A> method to c

-or-

<paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
<paramref name="byteIndex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.

-or-

Expand Down Expand Up @@ -1276,7 +1276,7 @@ The following example uses the <xref:System.Text.Encoder.Convert%2A> method to c

-or-

<paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
<paramref name="byteIndex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.

-or-

Expand Down
4 changes: 2 additions & 2 deletions xml/System.Text/Encoding.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2466,7 +2466,7 @@ The returned <xref:System.IO.Stream>'s <xref:System.IO.Stream.CanRead> and <xref

-or-

<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="s" />.

-or-

Expand Down Expand Up @@ -3339,7 +3339,7 @@ The returned <xref:System.IO.Stream>'s <xref:System.IO.Stream.CanRead> and <xref

-or-

<paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
<paramref name="byteIndex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.

-or-

Expand Down
5 changes: 1 addition & 4 deletions xml/System.Text/EncodingProvider.xml
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ This method is called by the [Encoding.GetEncoding(String)](<xref:System.Text.En
<format type="text/markdown"><![CDATA[

## Remarks
The `encoderFallback` and `decoderFallback` parameters are objects that define the fallback strategy used in the event that an encoder cannot convert a character to a sequence of bytes or a decoder cannot convert a sequence of bytes to a character. The .NET Framework provides the following fallback mechanisms:
The `encoderFallback` and `decoderFallback` parameters are objects that define the fallback strategy used in the event that an encoder cannot convert a character to a sequence of bytes or a decoder cannot convert a sequence of bytes to a character. .NET provides the following fallback mechanisms:

- Exception fallback. If the `encoderFallback` argument is an instance of <xref:System.Text.EncoderExceptionFallback>, or the `decoderExceptionFallback` argument is an instance of <xref:System.Text.DecoderExceptionFallback>, the encoding method throws an exception if characters cannot be encoded, and the decoding method throws an exception if a byte sequence cannot be decoded.

Expand All @@ -416,9 +416,6 @@ This method is called by the [Encoding.GetEncoding(String)](<xref:System.Text.En

]]></format>
</remarks>
<block subset="none" type="overrides">
<para>Because calls to this method use your implementation of the <see cref="M:System.Text.EncodingProvider.GetEncoding(System.String)" /> method, you do not have to override it. When user code attempts to retrieve an encoding by calling the <see cref="M:System.Text.EncodingProvider.GetEncoding(System.String,System.Text.EncoderFallback,System.Text.DecoderFallback)" /> method, the method passes the <paramref name="codepage" /> identifier to every registered encoding provider until one returns a valid encoding. If none returns a valid encoding, the <see cref="M:System.Text.Encoding.GetEncoding(System.Int32)" /> method attempts to retrieve a cached encoding whose code page identifier is <paramref name="codepage" />. Because of this, if you do choose to override the <see cref="M:System.Text.EncodingProvider.GetEncoding(System.Int32,System.Text.EncoderFallback,System.Text.DecoderFallback)" /> method, your override should return <see langword="null" /> if <paramref name="codepage" /> is not the code page identifier of an encoding that you support; it should never throw an exception.</para>
</block>
<block subset="none" type="usage">
<para>This method is called by the <see cref="M:System.Text.Encoding.GetEncoding(System.String,System.Text.EncoderFallback,System.Text.DecoderFallback)" /> method. You should not call it directly from user code.</para>
</block>
Expand Down
Loading