From c34c6819092ae302aeced769ab4bb42a71ac7e69 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Fri, 17 Apr 2026 17:49:28 +0300 Subject: [PATCH 1/3] Fix docs on DataRow.Delete() (#12530) Fixes #12525 --- xml/System.Data/DataRow.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Data/DataRow.xml b/xml/System.Data/DataRow.xml index 70607d69228..908475fd620 100644 --- a/xml/System.Data/DataRow.xml +++ b/xml/System.Data/DataRow.xml @@ -467,7 +467,7 @@ of the row is Added, the becomes `Detached` and the row is removed from the table when you call . + If the of the row is `Added`, the becomes `Detached` and the row is removed from the table immediately. The becomes `Deleted` after you use the method on an existing . It remains `Deleted` until you call . At this time, the is removed from the table. From a951aecb407b0e91f755f04c531173c273e08d5a Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Fri, 17 Apr 2026 09:52:59 -0600 Subject: [PATCH 2/3] Disallow edits on System.Text.RegularExpressions docs (#12529) The source of truth for System.Text.RegularExpressions XML docs is being moved to dotnet/runtime (see dotnet/runtime#127038). - Add System.Text.RegularExpressions to disallow-edits.yml GitOps policy - Set open_to_public_contributors to false in docfx.json Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/policies/disallow-edits.yml | 3 +++ docfx.json | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/policies/disallow-edits.yml b/.github/policies/disallow-edits.yml index 1f505663c85..4af29a3e1a9 100644 --- a/.github/policies/disallow-edits.yml +++ b/.github/policies/disallow-edits.yml @@ -67,6 +67,9 @@ configuration: - filesMatchPattern: matchAny: true pattern: xml/System.Runtime.Serialization/XsdDataContractExporter.xml + - filesMatchPattern: + matchAny: true + pattern: xml/System.Text.RegularExpressions/* then: - addReply: reply: >- diff --git a/docfx.json b/docfx.json index a5c17dd982f..545aaa274c0 100644 --- a/docfx.json +++ b/docfx.json @@ -174,6 +174,7 @@ "api/System.Net.ServerSentEvents.**": false, "api/System.Numerics.Tensors.**": false, "api/System.Reflection.Context.**": false, + "api/System.Text.RegularExpressions.**": false, "api/System.Diagnostics.FileVersionInfo.yml": false, "api/System.Linq.AsyncEnumerable.yml": false, From 0c25088e12ef2c47282cf0096c33e6ce29cee58e Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 09:50:30 -0700 Subject: [PATCH 3/3] Port MetadataLoadContext.CoreAssembly nullability changes from dotnet/runtime#126142 (#12528) * Port MetadataLoadContext.CoreAssembly nullability changes from dotnet/runtime#126142 Agent-Logs-Url: https://github.com/dotnet/dotnet-api-docs/sessions/0926574b-ab2c-4fc6-a3bc-d6e60b32393e Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com> * Update xml/System.Reflection/MetadataLoadContext.xml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update xml/System.Reflection/MetadataLoadContext.xml Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com> Co-authored-by: Jan Kotas Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --- xml/System.Reflection/MetadataLoadContext.xml | 44 +++---------------- 1 file changed, 5 insertions(+), 39 deletions(-) diff --git a/xml/System.Reflection/MetadataLoadContext.xml b/xml/System.Reflection/MetadataLoadContext.xml index 69510ae2afb..9dd240ac039 100644 --- a/xml/System.Reflection/MetadataLoadContext.xml +++ b/xml/System.Reflection/MetadataLoadContext.xml @@ -83,7 +83,7 @@ For more information and examples, see [How to: Inspect assembly contents using - + @@ -94,12 +94,6 @@ For more information and examples, see [How to: Inspect assembly contents using System.Reflection.MetadataLoadContext 11.0.0.0 - - - [System.Runtime.CompilerServices.Nullable(2)] - [<System.Runtime.CompilerServices.Nullable(2)>] - - System.Reflection.Assembly @@ -113,10 +107,10 @@ For more information and examples, see [How to: Inspect assembly contents using The core assembly is treated differently than other assemblies because references to these well-known types do not include the assembly reference, unlike normal types. -Typically, this assembly is named "mscorlib" or "netstandard". If the core assembly cannot be found, the value will be `null`, and many other reflection methods, including those that parse method signatures, will throw an exception. +Typically, this assembly is named "System.Runtime", "mscorlib", or "netstandard". -The `CoreAssembly` is determined by passing the `coreAssemblyName` parameter passed to the constructor -to the method. +The `CoreAssembly` is determined by passing the `coreAssemblyName` parameter to the constructor, +which in turn passes it to the method. If no `coreAssemblyName` argument was specified in the constructor of , then default values are used, including "mscorlib", "System.Runtime" and "netstandard". @@ -124,35 +118,7 @@ The designated core assembly does not need to contain the core types directly. I Note that is not an ideal core assembly because it excludes some of the interop-related pseudo-custom attribute types such as . However, it can serve if you have no interest in those attributes. The CustomAttributes API will skip those attributes if the core assembly does not include the necessary types. -The core assembly is not loaded until necessary. The following APIs do not trigger the search for the core assembly: - -* -* -* -* -* -* -* -* -* -* -* -* -* -* - -If a core assembly cannot be found or if the core assembly is missing types, this will affect the behavior of the as follows: - -* APIs that need to parse signatures or typespecs and return the results as objects will throw an exception. For example: - - * - * - * - * - -* APIs that need to compare types to well-known core types will not throw an exception, and the comparison will evaluate to `false`. For example, if you do not specify a core assembly, will return `false` for everything, even types named . Similarly, will return for everything. - -* If a metadata entity sets flags that surface as a pseudo-custom attribute, and the core assembly does not contain the pseudo-custom attribute type, the necessary constructor or any of the parameter types of the constructor, the will not throw. It will omit the pseudo-custom attribute from the list of returned attributes. +If a core assembly cannot be found, the constructor of throws an exception. ]]>