"Native Integers vs IntPtrs"

nint nativeIntegerOne = 100;
nint nativeIntegerTwo = 200;

IntPtr intPtrOne = new IntPtr(100);
IntPtr intPtrTwo = new IntPtr(200);

Console.WriteLine(nativeIntegerOne + nativeIntegerTwo); // 300
Console.WriteLine(intPtrOne + intPtrTwo); // Doesn't compile


Code snippet taken from "Two Decades of C#: A Reference - C# 9".