DotNext by Roman Sakno

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

 DefaultConst<T>

public sealed class DefaultConst<T> : Constant<T>
Represents default value of type T as constant.
using System.Runtime.CompilerServices; namespace DotNext.Generic { [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] public sealed class DefaultConst<T> : Constant<T> { public DefaultConst() : base(default(T)) { } } }