<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0-preview.2.23128.3" />

NotNullIfNotNullAttribute

Specifies that the output will be non-null if the named parameter is non-null.
namespace System.Diagnostics.CodeAnalysis { [AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = true, Inherited = false)] internal sealed class NotNullIfNotNullAttribute : Attribute { public string ParameterName { get; } public NotNullIfNotNullAttribute(string parameterName) { ParameterName = parameterName; } } }