"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 "Complete C# Quick Reference - C# 9".