DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="3.1.0" />

.NET API 362,496 bytes

 UserDataSlot

static class UserDataSlot
using DotNext.Threading; namespace DotNext { internal static class UserDataSlot { private static long counter; internal static long NewId => ref counter.IncrementAndGet(); } }