From 2acd6820dbf24c2a5f201fe93f73a4244d17c4e4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 13:32:48 +0000 Subject: [PATCH 1/3] Initial plan From 5ab0eb44d7d3a657dcb1efb8ab6841ed6509a49b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 13:34:42 +0000 Subject: [PATCH 2/3] Fix overlocalization risk by codefencing C# conversion keywords --- .../language-reference/builtin-types/numeric-conversions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/language-reference/builtin-types/numeric-conversions.md b/docs/csharp/language-reference/builtin-types/numeric-conversions.md index 0ebb39a345c63..ff7abcd7c2d60 100644 --- a/docs/csharp/language-reference/builtin-types/numeric-conversions.md +++ b/docs/csharp/language-reference/builtin-types/numeric-conversions.md @@ -12,7 +12,7 @@ helpviewer_keywords: --- # Built-in numeric conversions (C# reference) -C# provides a set of [integral](integral-numeric-types.md) and [floating-point](floating-point-numeric-types.md) numeric types. An implicit or explicit conversion exists between any two numeric types. Use a [cast expression](../operators/type-testing-and-cast.md#cast-expression) to perform an explicit conversion. +C# provides a set of [integral](integral-numeric-types.md) and [floating-point](floating-point-numeric-types.md) numeric types. An `implicit` or `explicit` conversion exists between any two numeric types. Use a [cast expression](../operators/type-testing-and-cast.md#cast-expression) to perform an `explicit` conversion. [!INCLUDE[csharp-version-note](../includes/initial-version.md)] From b6a7bce3d6da03b446e6342548fc96ad07f5e759 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 18:12:23 +0000 Subject: [PATCH 3/3] Address review: code-fence implicit-table type keywords --- .../builtin-types/numeric-conversions.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/csharp/language-reference/builtin-types/numeric-conversions.md b/docs/csharp/language-reference/builtin-types/numeric-conversions.md index ff7abcd7c2d60..722996b7379ed 100644 --- a/docs/csharp/language-reference/builtin-types/numeric-conversions.md +++ b/docs/csharp/language-reference/builtin-types/numeric-conversions.md @@ -12,7 +12,7 @@ helpviewer_keywords: --- # Built-in numeric conversions (C# reference) -C# provides a set of [integral](integral-numeric-types.md) and [floating-point](floating-point-numeric-types.md) numeric types. An `implicit` or `explicit` conversion exists between any two numeric types. Use a [cast expression](../operators/type-testing-and-cast.md#cast-expression) to perform an `explicit` conversion. +C# provides a set of [integral](integral-numeric-types.md) and [floating-point](floating-point-numeric-types.md) numeric types. An implicit or explicit conversion exists between any two numeric types. Use a [cast expression](../operators/type-testing-and-cast.md#cast-expression) to perform an explicit conversion. [!INCLUDE[csharp-version-note](../includes/initial-version.md)] @@ -22,17 +22,17 @@ The following table shows the predefined implicit conversions between the built- | From | To | |------------------------------------------|--------| -| [sbyte](integral-numeric-types.md) | `short`, `int`, `long`, `float`, `double`, `decimal`, or `nint` | -| [byte](integral-numeric-types.md) | `short`, `ushort`, `int`, `uint`, `long`, `ulong`, `float`, `double`, `decimal`, `nint`, or `nuint` | -| [short](integral-numeric-types.md) | `int`, `long`, `float`, `double`, `decimal`, or `nint` | -| [ushort](integral-numeric-types.md) | `int`, `uint`, `long`, `ulong`, `float`, `double`, `decimal`, `nint`, or `nuint` | -| [int](integral-numeric-types.md) | `long`, `float`, `double`, `decimal`, or `nint` | -| [uint](integral-numeric-types.md) | `long`, `ulong`, `float`, `double`, `decimal`, or `nuint` | -| [long](integral-numeric-types.md) | `float`, `double`, or `decimal` | -| [ulong](integral-numeric-types.md) | `float`, `double`, or `decimal` | -| [float](floating-point-numeric-types.md) | `double` | -| [nint](integral-numeric-types.md) | `long`, `float`, `double`, or `decimal` | -| [nuint](integral-numeric-types.md) | `ulong`, `float`, `double`, or `decimal` | +| [`sbyte`](integral-numeric-types.md) | `short`, `int`, `long`, `float`, `double`, `decimal`, or `nint` | +| [`byte`](integral-numeric-types.md) | `short`, `ushort`, `int`, `uint`, `long`, `ulong`, `float`, `double`, `decimal`, `nint`, or `nuint` | +| [`short`](integral-numeric-types.md) | `int`, `long`, `float`, `double`, `decimal`, or `nint` | +| [`ushort`](integral-numeric-types.md) | `int`, `uint`, `long`, `ulong`, `float`, `double`, `decimal`, `nint`, or `nuint` | +| [`int`](integral-numeric-types.md) | `long`, `float`, `double`, `decimal`, or `nint` | +| [`uint`](integral-numeric-types.md) | `long`, `ulong`, `float`, `double`, `decimal`, or `nuint` | +| [`long`](integral-numeric-types.md) | `float`, `double`, or `decimal` | +| [`ulong`](integral-numeric-types.md) | `float`, `double`, or `decimal` | +| [`float`](floating-point-numeric-types.md) | `double` | +| [`nint`](integral-numeric-types.md) | `long`, `float`, `double`, or `decimal` | +| [`nuint`](integral-numeric-types.md) | `ulong`, `float`, `double`, or `decimal` | > [!NOTE] > The implicit conversions from `int`, `uint`, `long`, `ulong`, `nint`, or `nuint` to `float` and from `long`, `ulong`, `nint`, or `nuint` to `double` can cause a loss of precision, but never a loss of an order of magnitude. The other implicit numeric conversions never lose any information.