From 0d6d5154b6d0dce6415aba19cd1eb32312a7f05b Mon Sep 17 00:00:00 2001 From: "MSDN.WhiteKnight" <35516665+MSDN-WhiteKnight@users.noreply.github.com> Date: Mon, 8 Nov 2021 09:32:50 +0500 Subject: [PATCH 1/2] Update IntPtr.xml --- xml/System/IntPtr.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xml/System/IntPtr.xml b/xml/System/IntPtr.xml index 35b5e80843a..70bc0bec875 100644 --- a/xml/System/IntPtr.xml +++ b/xml/System/IntPtr.xml @@ -107,6 +107,8 @@ The type is CLS-compliant, while the type is not. Only the type is used in the common language runtime. The type is provided mostly to maintain architectural symmetry with the type. This type implements the , and, in .NET 5.0 and later, the interfaces. + + In C# starting from version 9.0, you can use the built-in `nint` type to define native-sized integers. This type is represented by the type internally and provides operations and conversions that are appropriate for integer types. For more information, see [nint and nuint types](/dotnet/csharp/language-reference/builtin-types/nint-nuint). ## Examples From 17612b47c1a63a8d4f7cf622a6c4c3679f18fb24 Mon Sep 17 00:00:00 2001 From: "MSDN.WhiteKnight" <35516665+MSDN-WhiteKnight@users.noreply.github.com> Date: Mon, 8 Nov 2021 09:45:21 +0500 Subject: [PATCH 2/2] Update UIntPtr.xml --- xml/System/UIntPtr.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xml/System/UIntPtr.xml b/xml/System/UIntPtr.xml index 63effe59ffd..587021f0959 100644 --- a/xml/System/UIntPtr.xml +++ b/xml/System/UIntPtr.xml @@ -110,6 +110,8 @@ The type can be used by languages that support pointers, and as a common means of referring to data between languages that do and do not support pointers. objects can also be used to hold handles. This type implements the , and, in .NET 5.0 and later, the interfaces. + + In C# starting from version 9.0, you can use the built-in `nuint` type to define native-sized integers. This type is represented by the type internally and provides operations and conversions that are appropriate for integer types. For more information, see [nint and nuint types](/dotnet/csharp/language-reference/builtin-types/nint-nuint). ]]>