<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="7.0.0-preview.7.22375.6" />

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; } } }