// #pragma warning disable namespace System.Diagnostics.CodeAnalysis { /// /// Specifies that the output will be non-null if the named parameter is non-null. /// /// Internal copy from the BCL attribute. [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue, AllowMultiple = true, Inherited = false)] internal sealed class NotNullIfNotNullAttribute : Attribute { /// /// Initializes a new instance of the class. /// /// The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null. public NotNullIfNotNullAttribute(string parameterName) => ParameterName = parameterName; /// Gets the associated parameter name. public string ParameterName { get; } } }