Skip to content

Commit 9be4ebe

Browse files
Merge pull request #11696 from dotnet/main
Merge main into live
2 parents 6348e48 + a640c04 commit 9be4ebe

File tree

7 files changed

+56
-28
lines changed

7 files changed

+56
-28
lines changed

xml/System.IO.Compression/ZipArchiveEntry.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ If the comment byte length is larger than <xref:System.UInt16.MaxValue>, it will
409409
-or-
410410

411411
The archive mode is set to <see cref="F:System.IO.Compression.ZipArchiveMode.Update" /> and the entry has been opened.</exception>
412-
<exception cref="T:System.ArgumentOutOfRangeException">An attempt was made to set this property to a value that is either earlier than 1980 January 1 0:00:00 (midnight) or later than 2107 December 31 23:59:58 (one second before midnight).</exception>
412+
<exception cref="T:System.ArgumentOutOfRangeException">An attempt was made to set this property to a value that is either earlier than 1980 January 1 0:00:00 (midnight) or later than 2107 December 31 23:59:58 (two seconds before midnight).</exception>
413413
</Docs>
414414
</Member>
415415
<Member MemberName="Length">

xml/System.Reflection.Emit/AssemblyBuilder.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ The following code example shows how to define and use a dynamic assembly. The e
442442
<param name="access">The access rights of the assembly.</param>
443443
<summary>Defines a dynamic assembly that has the specified name and access rights.</summary>
444444
<returns>An object that represents the new assembly.</returns>
445-
<remarks>To be added.</remarks>
445+
<remarks>.NET 6+ only: If the <see cref="P:System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext" /> property is null, then the assembly is created in the <see cref="T:System.Runtime.Loader.AssemblyLoadContext" /> of the function that calls DefineDynamicAssembly. Otherwise, it's created with the <see cref="T:System.Runtime.Loader.AssemblyLoadContext" /> specified in <see cref="P:System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext" />.</remarks>
446446
</Docs>
447447
</Member>
448448
<Member MemberName="DefineDynamicAssembly">
@@ -505,9 +505,9 @@ The following code example shows how to define and use a dynamic assembly. The e
505505
<param name="name">The name of the assembly.</param>
506506
<param name="access">The access rights of the assembly.</param>
507507
<param name="assemblyAttributes">A collection that contains the attributes of the assembly.</param>
508-
<summary>Defines a new assembly that has the specified name, access rights, and attributes.</summary>
508+
<summary>Defines a dynamic assembly that has the specified name, access rights, and attributes.</summary>
509509
<returns>An object that represents the new assembly.</returns>
510-
<remarks>To be added.</remarks>
510+
<remarks>.NET 6+ only: If the <see cref="P:System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext" /> property is null, then the assembly is created in the <see cref="T:System.Runtime.Loader.AssemblyLoadContext" /> of the function that calls DefineDynamicAssembly. Otherwise, it's created with the <see cref="T:System.Runtime.Loader.AssemblyLoadContext" /> specified in <see cref="P:System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext" />.</remarks>
511511
</Docs>
512512
</Member>
513513
<MemberGroup MemberName="DefineDynamicModule">

xml/System.Reflection/Assembly.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3241,6 +3241,8 @@ Note: In <see href="https://go.microsoft.com/fwlink/?LinkID=247912">.NET for Win
32413241
## Remarks
32423242
This method only searches the current assembly instance. The `name` parameter includes the namespace but not the assembly. To search other assemblies for a type, use the <xref:System.Type.GetType%28System.String%29?displayProperty=nameWithType> method overload, which can optionally include an assembly display name as part of the type name.
32433243

3244+
In .NET Core/.NET 5+, if there are assembly-qualified generic type parameters in the type name string, those assembly references will be loaded by the <xref:System.Runtime.Loader.AssemblyLoadContext> of the method that called Assembly.GetType, or by the <xref:System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext%2A?displayProperty=nameWithType> context if it's set.
3245+
32443246
> [!NOTE]
32453247
> If the type has been forwarded to another assembly, it is still returned by this method. For information on type forwarding, see [Type Forwarding in the Common Language Runtime](/dotnet/standard/assembly/type-forwarding).
32463248

@@ -3345,6 +3347,8 @@ Note: In <see href="https://go.microsoft.com/fwlink/?LinkID=247912">.NET for Win
33453347
## Remarks
33463348
This method only searches the current assembly instance. The `name` parameter includes the namespace but not the assembly. To search other assemblies for a type, use the <xref:System.Type.GetType%28System.String%29?displayProperty=nameWithType> method overload, which can optionally include an assembly display name as part of the type name.
33473349

3350+
In .NET Core/.NET 5+, if there are assembly-qualified generic type parameters in the type name string, those assembly references will be loaded by the <xref:System.Runtime.Loader.AssemblyLoadContext> of the method that called Assembly.GetType, or by the <xref:System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext%2A?displayProperty=nameWithType> context if it's set.
3351+
33483352
> [!NOTE]
33493353
> If the type has been forwarded to another assembly, it is still returned by this method. For information on type forwarding, see [Type Forwarding in the Common Language Runtime](/dotnet/standard/assembly/type-forwarding).
33503354

@@ -3450,6 +3454,8 @@ Note: In <see href="https://go.microsoft.com/fwlink/?LinkID=247912">.NET for Win
34503454
## Remarks
34513455
This method only searches the current assembly instance. The `name` parameter includes the namespace but not the assembly. To search other assemblies for a type, use the <xref:System.Type.GetType%28System.String%29?displayProperty=nameWithType> method overload, which can optionally include an assembly display name as part of the type name.
34523456

3457+
In .NET Core/.NET 5+, if there are assembly-qualified generic type parameters in the type name string, those assembly references will be loaded by the <xref:System.Runtime.Loader.AssemblyLoadContext> of the method that called Assembly.GetType, or by the <xref:System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext%2A?displayProperty=nameWithType> context if it's set.
3458+
34533459
> [!NOTE]
34543460
> If the type has been forwarded to another assembly, it is still returned by this method. For information on type forwarding, see [Type Forwarding in the Common Language Runtime](/dotnet/standard/assembly/type-forwarding).
34553461

@@ -4097,7 +4103,7 @@ This property is marked obsolete starting in .NET 5, and generates a compile-tim
40974103

40984104
## Remarks
40994105

4100-
In .NET Core/.NET 5+, the target assembly will be loaded into the current <xref:System.Runtime.Loader.AssemblyLoadContext>. For more information on assembly loading, see [Managed assembly loading algorithm](/dotnet/core/dependency-loading/loading-managed#algorithm").
4106+
In .NET Core/.NET 5+, the target assembly will be loaded into the current <xref:System.Runtime.Loader.AssemblyLoadContext> or into the <xref:System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext%2A?displayProperty=nameWithType> context if it's set. For more information on assembly loading, see [Managed assembly loading algorithm](/dotnet/core/dependency-loading/loading-managed#algorithm).
41014107

41024108
> [!NOTE]
41034109
> **.NET Framework only:** For information about loading assemblies from remote locations, see [`<loadFromRemoteSources>`](/dotnet/framework/configure-apps/file-schema/runtime/loadfromremotesources-element).
@@ -4191,7 +4197,7 @@ Note: In <see href="https://go.microsoft.com/fwlink/?LinkID=247912">.NET for Win
41914197

41924198
## Remarks
41934199

4194-
In .NET Core/5+, the target assembly is loaded into the current <xref:System.Runtime.Loader.AssemblyLoadContext>. For more information on assembly loading, see [Managed assembly loading algorithm](/dotnet/core/dependency-loading/loading-managed#algorithm").
4200+
In .NET Core/.NET 5+, the target assembly will be loaded into the current <xref:System.Runtime.Loader.AssemblyLoadContext> or into the <xref:System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext%2A?displayProperty=nameWithType> context if it's set. For more information on assembly loading, see [Managed assembly loading algorithm](/dotnet/core/dependency-loading/loading-managed#algorithm).
41954201

41964202
To load the correct assembly, it's recommended to call the `Load` method by passing the long form of the assembly name. The long form of an assembly name consists of its simple name (such as "System" for the System.dll assembly) along with its version, culture, public key token, and optionally its processor architecture. It corresponds to the assembly's <xref:System.Reflection.Assembly.FullName%2A> property. The following example illustrates the use of a long name to load the System.dll assembly for .NET Framework 4:
41974203

@@ -5571,6 +5577,8 @@ The assembly is loaded into the default AssemblyLoadContext. For more informatio
55715577

55725578
Applications that load assemblies with this method will be affected by upgrades of those assemblies. Therefore, do not use this method; redesign the application to use the <xref:System.Reflection.Assembly.Load%28System.String%29> method overload or the <xref:System.Reflection.Assembly.LoadFrom%28System.String%29> method overload.
55735579

5580+
In .NET Core/5+, the target assembly is loaded into the current <xref:System.Runtime.Loader.AssemblyLoadContext> or the <xref:System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext%2A?displayProperty=nameWithType> if it's set.
5581+
55745582
This method first calls <xref:System.Reflection.Assembly.Load%2A>. If the assembly is not found, this method returns the assembly from the global assembly cache that has the same simple name, and the highest version number.
55755583

55765584
]]></format>

xml/System.Threading/Interlocked.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -858,10 +858,10 @@
858858
<Parameter Name="comparand" Type="System.IntPtr" Index="2" FrameworkAlternate="dotnet-uwp-10.0;net-10.0;net-5.0;net-6.0;net-7.0;net-8.0;net-9.0;netcore-1.0;netcore-1.1;netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netcore-3.1;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;netstandard-1.0;netstandard-1.1;netstandard-1.2;netstandard-1.3;netstandard-1.4;netstandard-1.6;netstandard-2.0;netstandard-2.1" />
859859
</Parameters>
860860
<Docs>
861-
<param name="location1">The destination <see cref="T:System.IntPtr" />, whose value is compared with the value of <paramref name="comparand" /> and possibly replaced by <paramref name="value" />.</param>
862-
<param name="value">The <see cref="T:System.IntPtr" /> that replaces the destination value if the comparison results in equality.</param>
863-
<param name="comparand">The <see cref="T:System.IntPtr" /> that is compared to the value at <paramref name="location1" />.</param>
864-
<summary>Compares two platform-specific handles or pointers for equality and, if they are equal, replaces the first one, as an atomic operation.</summary>
861+
<param name="location1">The destination, whose value is compared with the value of <paramref name="comparand" /> and possibly replaced by <paramref name="value" />.</param>
862+
<param name="value">The value that replaces the destination value if the comparison results in equality.</param>
863+
<param name="comparand">The value that is compared to the value at <paramref name="location1" />.</param>
864+
<summary>Compares two native-sized signed integers for equality and, if they are equal, replaces the first one, as an atomic operation.</summary>
865865
<returns>The original value in <paramref name="location1" />.</returns>
866866
<remarks>
867867
<format type="text/markdown"><![CDATA[
@@ -1251,10 +1251,10 @@ If `comparand` and the object in `location1` are equal by reference, then `value
12511251
<Parameter Name="comparand" Type="System.UIntPtr" Index="2" FrameworkAlternate="net-7.0;net-8.0;net-9.0;net-10.0" />
12521252
</Parameters>
12531253
<Docs>
1254-
<param name="location1">The destination <see cref="T:System.UIntPtr" />, whose value is compared with the value of <paramref name="comparand" /> and possibly replaced by <paramref name="value" />.</param>
1255-
<param name="value">The <see cref="T:System.UIntPtr" /> that replaces the destination value if the comparison results in equality.</param>
1256-
<param name="comparand">The <see cref="T:System.UIntPtr" /> that is compared to the value at <paramref name="location1" />.</param>
1257-
<summary>Compares two platform-specific handles or pointers for equality and, if they are equal, replaces the first one, as an atomic operation.</summary>
1254+
<param name="location1">The destination, whose value is compared with the value of <paramref name="comparand" /> and possibly replaced by <paramref name="value" />.</param>
1255+
<param name="value">The value that replaces the destination value if the comparison results in equality.</param>
1256+
<param name="comparand">The value that is compared to the value at <paramref name="location1" />.</param>
1257+
<summary>Compares two native-sized unsigned integers for equality and, if they are equal, replaces the first one, as an atomic operation.</summary>
12581258
<returns>The original value in <paramref name="location1" />.</returns>
12591259
<remarks>To be added.</remarks>
12601260
<exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a <see langword="null" /> pointer.</exception>
@@ -1919,7 +1919,7 @@ If `comparand` and the value in `location1` are equal by reference, then `value`
19191919
<Docs>
19201920
<param name="location1">The variable to set to the specified value.</param>
19211921
<param name="value">The value to which the <paramref name="location1" /> parameter is set.</param>
1922-
<summary>Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.</summary>
1922+
<summary>Sets a native-sized signed integer to a specified value and returns the original value, as an atomic operation.</summary>
19231923
<returns>The original value of <paramref name="location1" />.</returns>
19241924
<remarks>To be added.</remarks>
19251925
<exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a <see langword="null" /> pointer.</exception>
@@ -2274,7 +2274,7 @@ If `comparand` and the value in `location1` are equal by reference, then `value`
22742274
<Docs>
22752275
<param name="location1">The variable to set to the specified value.</param>
22762276
<param name="value">The value to which the <paramref name="location1" /> parameter is set.</param>
2277-
<summary>Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.</summary>
2277+
<summary>Sets a native-sized unsigned integer to a specified value and returns the original value, as an atomic operation.</summary>
22782278
<returns>The original value of <paramref name="location1" />.</returns>
22792279
<remarks>To be added.</remarks>
22802280
<exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a <see langword="null" /> pointer.</exception>

xml/System.Threading/SemaphoreSlim.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ If a thread or task is blocked when calling <xref:System.Threading.SemaphoreSlim
826826

827827
-or-
828828

829-
<paramref name="timeout" /> is greater than <see cref="F:System.Int32.MaxValue">Int32.MaxValue</see>.</exception>
829+
In .NET 9 and earlier versions, <paramref name="timeout" /> is greater than <see cref="F:System.Int32.MaxValue">Int32.MaxValue</see>.</exception>
830830
<exception cref="T:System.ObjectDisposedException">The semaphoreSlim instance has been disposed.</exception>
831831
<related type="Article" href="/dotnet/standard/threading/semaphore-and-semaphoreslim">Semaphore and SemaphoreSlim</related>
832832
</Docs>
@@ -988,9 +988,9 @@ If `cancellationToken` is cancelled, the method throws an <xref:System.Operation
988988
<exception cref="T:System.ArgumentOutOfRangeException">
989989
<paramref name="timeout" /> is a negative number other than -1, which represents an infinite timeout.
990990

991-
-or-.
991+
-or-
992992

993-
<paramref name="timeout" /> is greater than <see cref="F:System.Int32.MaxValue">Int32.MaxValue</see>.</exception>
993+
In .NET 9 and earlier versions, <paramref name="timeout" /> is greater than <see cref="F:System.Int32.MaxValue">Int32.MaxValue</see>.</exception>
994994
<exception cref="T:System.ObjectDisposedException">The semaphoreSlim instance has been disposed.
995995

996996
-or-
@@ -1225,7 +1225,7 @@ The <see cref="T:System.Threading.CancellationTokenSource" /> that created <para
12251225

12261226
-or-
12271227

1228-
<paramref name="timeout" /> is greater than <see cref="F:System.Int32.MaxValue">Int32.MaxValue</see>.</exception>
1228+
In .NET 9 and earlier versions, <paramref name="timeout" /> is greater than <see cref="F:System.Int32.MaxValue">Int32.MaxValue</see>.</exception>
12291229
</Docs>
12301230
</Member>
12311231
<Member MemberName="WaitAsync">
@@ -1356,7 +1356,7 @@ The <see cref="T:System.Threading.CancellationTokenSource" /> that created <para
13561356

13571357
-or-
13581358

1359-
<paramref name="timeout" /> is greater than <see cref="F:System.Int32.MaxValue">Int32.MaxValue</see>.</exception>
1359+
In .NET 9 and earlier versions, <paramref name="timeout" /> is greater than <see cref="F:System.Int32.MaxValue">Int32.MaxValue</see>.</exception>
13601360
<exception cref="T:System.OperationCanceledException">
13611361
<paramref name="cancellationToken" /> was canceled.</exception>
13621362
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.SemaphoreSlim" /> has been disposed.</exception>

0 commit comments

Comments
 (0)