Skip to content

Commit 11d9bfe

Browse files
Merge pull request #10578 from dotnet/main
Merge main into live
2 parents a361ba0 + ada2cc1 commit 11d9bfe

File tree

8 files changed

+53
-17
lines changed

8 files changed

+53
-17
lines changed

.github/policies/auto-merge.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ configuration:
1818
branch: main
1919
- or:
2020
- isActivitySender:
21-
user: dependabot
22-
- isActivitySender:
23-
user: dependabot[bot]
21+
user: dotnet-policy-service[bot]
2422
then:
2523
- enableAutoMerge:
2624
mergeMethod: Squash

xml/System.Formats.Asn1/AsnDecoder.xml

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,25 @@
4343
<Parameter Name="bytesConsumed" Type="System.Int32" RefType="out" Index="2" FrameworkAlternate="net-8.0;net-9.0;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;netstandard-2.0" />
4444
</Parameters>
4545
<Docs>
46-
<param name="source">To be added.</param>
47-
<param name="ruleSet">To be added.</param>
48-
<param name="bytesConsumed">To be added.</param>
49-
<summary>To be added.</summary>
50-
<returns>To be added.</returns>
51-
<remarks>To be added.</remarks>
46+
<param name="source">The buffer containing encoded data.</param>
47+
<param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
48+
<param name="bytesConsumed">
49+
<para>When this method returns, contains the number of bytes from the beginning of <paramref name="source" /> that contributed to the length.</para>
50+
<para>This parameter is treated as uninitialized.</para>
51+
</param>
52+
<summary>
53+
<para>Decodes the data in <paramref name="source" /> as a length value under the specified encoding rules.</para>
54+
</summary>
55+
<returns>
56+
<para>The decoded value of the length, or <see langword="null" /> if the encoded length represents the indefinite length.</para>
57+
</returns>
58+
<remarks>
59+
<para>This method only processes the length portion of an ASN.1/BER Tag-Length-Value triplet, so <paramref name="source" /> needs to have already sliced off the encoded tag.</para>
60+
</remarks>
61+
<exception cref="T:System.ArgumentOutOfRangeException">
62+
<paramref name="ruleSet" /> is not a known <see cref="T:System.Formats.Asn1.AsnEncodingRules" /> value.</exception>
63+
<exception cref="T:System.Formats.Asn1.AsnContentException">
64+
<paramref name="source" /> does not decode as a length under the specified encoding rules.</exception>
5265
</Docs>
5366
</Member>
5467
<Member MemberName="ReadBitString">
@@ -1165,13 +1178,28 @@ The contents are not valid under the current encoding rules.</exception>
11651178
<Parameter Name="bytesConsumed" Type="System.Int32" RefType="out" Index="3" FrameworkAlternate="net-8.0;net-9.0;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;netstandard-2.0" />
11661179
</Parameters>
11671180
<Docs>
1168-
<param name="source">To be added.</param>
1169-
<param name="ruleSet">To be added.</param>
1170-
<param name="decodedLength">To be added.</param>
1171-
<param name="bytesConsumed">To be added.</param>
1172-
<summary>To be added.</summary>
1173-
<returns>To be added.</returns>
1174-
<remarks>To be added.</remarks>
1181+
<param name="source">The buffer containing encoded data.</param>
1182+
<param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
1183+
<param name="decodedLength">
1184+
<para>When this method returns, contains the decoded value of the length, or <see langword="null" /> if the encoded length represents the indefinite length.</para>
1185+
<para>This parameter is treated as uninitialized.</para>
1186+
</param>
1187+
<param name="bytesConsumed">
1188+
<para>When this method returns, contains the number of bytes from the beginning of <paramref name="source" /> that contributed to the length.</para>
1189+
<para>This parameter is treated as uninitialized.</para>
1190+
</param>
1191+
<summary>
1192+
<para>Attempts to decode the data in <paramref name="source" /> as a length value under the specified encoding rules.</para>
1193+
</summary>
1194+
<returns>
1195+
<para>
1196+
<see langword="true" /> if the buffer represents a valid length under the specified encoding rules; otherwise, <see langword="false" /></para>
1197+
</returns>
1198+
<remarks>
1199+
<para>This method only processes the length portion of an ASN.1/BER Tag-Length-Value triplet, so <paramref name="source" /> needs to have already sliced off the encoded tag.</para>
1200+
</remarks>
1201+
<exception cref="T:System.ArgumentOutOfRangeException">
1202+
<paramref name="ruleSet" /> is not a known <see cref="T:System.Formats.Asn1.AsnEncodingRules" /> value.</exception>
11751203
</Docs>
11761204
</Member>
11771205
<Member MemberName="TryReadBitString">

xml/System.Numerics/INumberBase`1.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,8 @@ A return value of `false` does not imply that <xref:System.Numerics.INumberBase%
758758
759759
This function returns `true` for a complex number `a + bi` where `b` is zero.
760760
761+
This function checks values against the extended real number line, thus returns `true` for positive and negative infinity.
762+
761763
]]></format>
762764
</remarks>
763765
</Docs>

xml/System.Runtime.InteropServices/NFloat.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,6 +2372,8 @@ A return value of `false` does not imply that <xref:System.Numerics.INumberBase%
23722372

23732373
This function returns `true` for a complex number `a + bi` where `b` is zero.
23742374

2375+
This function checks values against the extended real number line, thus returns `true` for <xref:System.Runtime.InteropServices.NFloat.PositiveInfinity> and <xref:System.Runtime.InteropServices.NFloat.NegativeInfinity>.
2376+
23752377
]]></format>
23762378
</remarks>
23772379
<inheritdoc cref="M:System.Numerics.INumberBase`1.IsRealNumber(`0)" />

xml/System.Threading/Lock.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ It is recommended to use the <xref:System.Threading.Lock.EnterScope%2A> method w
3030
3131
:::code language="csharp" source="~/snippets/csharp/System.Threading/Lock/Overview/UsagePatterns.cs" id="Snippet1":::
3232
33-
When using the C# `lock` keyword or similar to enter and exit a lock, the type of the expression must be precisely `System.Threading.Lock`. If the type of the expression is anything else, such as `Object` or a generic type like `T`, a different implementation that is not interchangeable can be used instead (such as <xref:System.Threading.Monitor>). For more information, see the relevant [compiler speclet](https://github.com/dotnet/csharplang/blob/main/proposals/lock-object.md).
33+
When using the C# `lock` keyword or similar to enter and exit a lock, the type of the expression must be precisely `System.Threading.Lock`. If the type of the expression is anything else, such as `Object` or a generic type like `T`, a different implementation that is not interchangeable can be used instead (such as <xref:System.Threading.Monitor>). For more information, see the relevant [compiler speclet](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-13.0/lock-object).
3434
3535
<xref:System.Threading.Thread.Interrupt%2A> can interrupt threads that are waiting to enter a lock. On Windows STA threads, waits for locks allow message pumping that can run other code on the same thread during a wait. Some features of the waits can be overridden by a custom <xref:System.Threading.SynchronizationContext>.
3636

xml/System/Double.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3112,6 +3112,8 @@ A return value of `false` does not imply that <xref:System.Numerics.INumberBase%
31123112

31133113
This function returns `true` for a complex number `a + bi` where `b` is zero.
31143114

3115+
This function checks values against the extended real number line, thus returns `true` for <xref:System.Double.PositiveInfinity> and <xref:System.Double.NegativeInfinity>.
3116+
31153117
]]></format>
31163118
</remarks>
31173119
<inheritdoc cref="M:System.Numerics.INumberBase`1.IsRealNumber(`0)" />

xml/System/Half.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2318,6 +2318,8 @@ A return value of `false` does not imply that <xref:System.Numerics.INumberBase%
23182318
23192319
This function returns `true` for a complex number `a + bi` where `b` is zero.
23202320
2321+
This function checks values against the extended real number line, thus returns `true` for <xref:System.Half.PositiveInfinity> and <xref:System.Half.NegativeInfinity>.
2322+
23212323
]]></format>
23222324
</remarks>
23232325
<inheritdoc cref="M:System.Numerics.INumberBase`1.IsRealNumber(`0)" />

xml/System/Single.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3129,6 +3129,8 @@ A return value of `false` does not imply that <xref:System.Numerics.INumberBase%
31293129

31303130
This function returns `true` for a complex number `a + bi` where `b` is zero.
31313131

3132+
This function checks values against the extended real number line, thus returns `true` for <xref:System.Single.PositiveInfinity> and <xref:System.Single.NegativeInfinity>.
3133+
31323134
]]></format>
31333135
</remarks>
31343136
<inheritdoc cref="M:System.Numerics.INumberBase`1.IsRealNumber(`0)" />

0 commit comments

Comments
 (0)