diff --git a/.github/policies/label-issues.yml b/.github/policies/label-issues.yml index c08e446f49a..702e059090f 100644 --- a/.github/policies/label-issues.yml +++ b/.github/policies/label-issues.yml @@ -46,6 +46,8 @@ configuration: label: 'area-Extensions-Options' - labelAdded: label: 'area-Extensions-Primitives' + - labelAdded: + label: 'area-Infrastructure' - labelAdded: label: 'area-System.Buffers' - labelAdded: @@ -120,6 +122,8 @@ configuration: label: 'area-System.Resources' - labelAdded: label: 'area-System.Runtime' + - labelAdded: + label: 'area-System.Runtime.InteropServices' - labelAdded: label: 'area-System.Security' - labelAdded: diff --git a/snippets/csharp/System/String/IndexOfAny/IndexOfAny1.cs b/snippets/csharp/System/String/IndexOfAny/IndexOfAny1.cs index bd5da47b4d8..7e46888284c 100644 --- a/snippets/csharp/System/String/IndexOfAny/IndexOfAny1.cs +++ b/snippets/csharp/System/String/IndexOfAny/IndexOfAny1.cs @@ -8,12 +8,15 @@ public static void Run() char[] chars = { 'a', 'e', 'i', 'o', 'u', 'y', 'A', 'E', 'I', 'O', 'U', 'Y' }; String s = "The long and winding road..."; - Console.WriteLine($"The first vowel in \n {s}\n" + - $"is found at index {s.IndexOfAny(chars)}"); + Console.WriteLine($""" + The first vowel in + '{s}' + is found at index {s.IndexOfAny(chars)} + """); // The example displays the following output: // The first vowel in - // The long and winding road... + // 'The long and winding road...' // is found at index 2 // } diff --git a/snippets/csharp/System/String/IndexOfAny/ixany2.cs b/snippets/csharp/System/String/IndexOfAny/ixany2.cs index 4bd096b2703..f609c99f66d 100644 --- a/snippets/csharp/System/String/IndexOfAny/ixany2.cs +++ b/snippets/csharp/System/String/IndexOfAny/ixany2.cs @@ -22,8 +22,10 @@ public static void Run() Console.WriteLine(); Console.WriteLine("The first character occurrence " + $"from position {start} to {str.Length - 1}:"); - Console.WriteLine($"{Environment.NewLine}{br1}{Environment.NewLine}" + - $"{br2}{Environment.NewLine}{str}{Environment.NewLine}"); + Console.WriteLine($""" + {Environment.NewLine}{br1}{Environment.NewLine} + {br2}{Environment.NewLine}{str}{Environment.NewLine} + """); Console.Write($"A character in '{target}' occurs at position: "); at = str.IndexOfAny(anyOf, start); diff --git a/snippets/csharp/System/String/IndexOfAny/ixany3.cs b/snippets/csharp/System/String/IndexOfAny/ixany3.cs index cd33a33b681..2ad0da779a2 100644 --- a/snippets/csharp/System/String/IndexOfAny/ixany3.cs +++ b/snippets/csharp/System/String/IndexOfAny/ixany3.cs @@ -21,8 +21,10 @@ public static void Run() Console.WriteLine(); Console.WriteLine("The first character occurrence from " + $"position {start} for {count} characters:"); - Console.WriteLine($"{Environment.NewLine}{br1}{Environment.NewLine}{br2}" + - $"{Environment.NewLine}{str}{Environment.NewLine}"); + Console.WriteLine($""" + {Environment.NewLine}{br1}{Environment.NewLine}{br2} + {Environment.NewLine}{str}{Environment.NewLine} + """); Console.Write($"A character in '{target}' occurs at position: "); int at = str.IndexOfAny(anyOf, start, count); diff --git a/xml/System.Runtime.InteropServices/CLong.xml b/xml/System.Runtime.InteropServices/CLong.xml index 9d3205145a9..7800452aa35 100644 --- a/xml/System.Runtime.InteropServices/CLong.xml +++ b/xml/System.Runtime.InteropServices/CLong.xml @@ -94,7 +94,7 @@ The integer value. - Constructs an instance from a native sized integer. + Constructs an instance from a native-sized integer. To be added. is outside the range of the underlying storage type. diff --git a/xml/System.Runtime.InteropServices/CULong.xml b/xml/System.Runtime.InteropServices/CULong.xml index 52bfd0d9553..51871844006 100644 --- a/xml/System.Runtime.InteropServices/CULong.xml +++ b/xml/System.Runtime.InteropServices/CULong.xml @@ -94,7 +94,7 @@ The integer value. - Constructs an instance from a native sized unsigned integer. + Constructs an instance from a native-sized unsigned integer. To be added. is outside the range of the underlying storage type. diff --git a/xml/System.Runtime.InteropServices/Marshal.xml b/xml/System.Runtime.InteropServices/Marshal.xml index 67b96040f26..8210b886f60 100644 --- a/xml/System.Runtime.InteropServices/Marshal.xml +++ b/xml/System.Runtime.InteropServices/Marshal.xml @@ -9245,7 +9245,7 @@ On .NET 6 and later versions, this method is functionally equivalent to 4.2.0.0 - Reads a processor native sized integer from unmanaged memory. Reading from unaligned memory locations is supported. + Reads a processor native-sized integer from unmanaged memory. Reading from unaligned memory locations is supported. @@ -9393,7 +9393,7 @@ On .NET 6 and later versions, this method is functionally equivalent to The base address in unmanaged memory from which to read. An additional byte offset, which is added to the parameter before reading. - Reads a processor native sized integer at a given offset from unmanaged memory. + Reads a processor native-sized integer at a given offset from unmanaged memory. The integer read from unmanaged memory at the given offset. The base address in unmanaged memory of the source object. An additional byte offset, which is added to the parameter before reading. - Reads a processor native sized integer from unmanaged memory. + Reads a processor native-sized integer from unmanaged memory. The integer read from unmanaged memory at the given offset. The address in unmanaged memory to write to. The value to write. - Writes a processor native sized integer value into unmanaged memory. + Writes a processor native-sized integer value into unmanaged memory. The base address in unmanaged memory of the target object. An additional byte offset, which is added to the parameter before writing. The value to write. - Writes a processor native sized integer value to unmanaged memory. + Writes a processor native-sized integer value to unmanaged memory. method is unnecessary on 64-bit systems, because 64-bit read operations are already atomic. On 32-bit systems, 64-bit read operations are not atomic unless performed using . +> [!IMPORTANT] +> On 32-bit platforms, despite taking a readonly reference parameter, this method requires write access to the memory location because it uses internally to ensure atomicity. Attempting to read from read-only memory (such as memory-mapped files opened with read-only access) can result in an . + ]]> @@ -3006,7 +3009,17 @@ This method wraps a call to [FlushProcessWriteBuffers](/windows/win32/api/proces The 64-bit value to be loaded. Returns a 64-bit unsigned value, loaded as an atomic operation. The loaded value. - To be added. + + method is unnecessary on 64-bit systems, because 64-bit read operations are already atomic. On 32-bit systems, 64-bit read operations are not atomic unless performed using . + +> [!IMPORTANT] +> On 32-bit platforms, despite taking a readonly reference parameter, this method requires write access to the memory location because it uses internally to ensure atomicity. Attempting to read from read-only memory (such as memory-mapped files opened with read-only access) can result in an . + + ]]> + diff --git a/xml/System/Math.xml b/xml/System/Math.xml index 7b801c83543..43469aa4ef1 100644 --- a/xml/System/Math.xml +++ b/xml/System/Math.xml @@ -7819,7 +7819,7 @@ The following example demonstrates how to use the A signed number. - Returns an integer that indicates the sign of a native sized signed integer. + Returns an integer that indicates the sign of a native-sized signed integer. A number that indicates the sign of , as shown in the following table. Return value