From 35fa7c9f054bf04e99885e646fdabc8d8e0f2abf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 7 Jul 2025 18:13:14 +0000 Subject: [PATCH 1/2] Initial plan From 783e0d49b690a66ea685bb17b7aab6afe0561ddd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 7 Jul 2025 18:19:20 +0000 Subject: [PATCH 2/2] Fix nint/nuint constants documentation to clarify compile-time vs runtime ranges Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com> --- .../language-reference/builtin-types/integral-numeric-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/language-reference/builtin-types/integral-numeric-types.md b/docs/csharp/language-reference/builtin-types/integral-numeric-types.md index e47aadcb812ea..3a6d33c148519 100644 --- a/docs/csharp/language-reference/builtin-types/integral-numeric-types.md +++ b/docs/csharp/language-reference/builtin-types/integral-numeric-types.md @@ -136,7 +136,7 @@ Native sized integer types have special behavior because the storage is determin :::code language="csharp" source="snippets/shared/NativeIntegerTypes.cs" id="MinMax"::: -- You can use constant values in the following ranges: +- While the full range of `nint` and `nuint` may be larger, compile-time constants are restricted to a 32-bit range: - For `nint`: to . - For `nuint`: to . - The compiler provides implicit and explicit conversions to other numeric types. For more information, see [Built-in numeric conversions](numeric-conversions.md).