<PackageReference Include="System.Text.Json" Version="10.0.0-preview.6.25358.103" />

System.Collections.ThrowHelper

static class ThrowHelper
namespace System.Collections { internal static class ThrowHelper { public static void ThrowIfNegative(int value, string paramName = null); public static void ThrowIfGreaterThan<T>(T value, T other, string paramName = null) where T : IComparable<T>; public static void ThrowIfLessThan<T>(T value, T other, string paramName = null) where T : IComparable<T>; } }