DotNext by .NET Foundation and Contributors

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

 StringConst

public abstract class StringConst : Constant<string>
Represents string constant as generic parameter.
using System.Runtime.CompilerServices; namespace DotNext.Generic { [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] public abstract class StringConst : Constant<string> { public sealed class Null : StringConst { [System.Runtime.CompilerServices.Nullable(1)] public new const string Value = null; public Null() : base(null) { } } public sealed class Empty : StringConst { [System.Runtime.CompilerServices.Nullable(1)] public new const string Value = ""; public Empty() : base("") { } } [System.Runtime.CompilerServices.NullableContext(1)] protected StringConst(string value) : base(value) { } } }