mirror of
https://github.com/CommunityToolkit/dotnet.git
synced 2026-10-20 14:16:34 +08:00
806287d7e2
This both adds the new "// <auto-generated/>" header, as well as restores the non-file-scoped namespace declaration so that the code will compile on C# < 10 as well (which is explicitly supported by the MVVM Toolkit)
23 lines
1018 B
C#
23 lines
1018 B
C#
// <auto-generated/>
|
|
|
|
#pragma warning disable
|
|
|
|
namespace System.Diagnostics.CodeAnalysis
|
|
{
|
|
/// <summary>
|
|
/// Specifies that the output will be non-null if the named parameter is non-null.
|
|
/// </summary>
|
|
/// <remarks>Internal copy from the BCL attribute.</remarks>
|
|
[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue, AllowMultiple = true, Inherited = false)]
|
|
internal sealed class NotNullIfNotNullAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="NotNullIfNotNullAttribute"/> class.
|
|
/// </summary>
|
|
/// <param name="parameterName"> The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null.</param>
|
|
public NotNullIfNotNullAttribute(string parameterName) => ParameterName = parameterName;
|
|
|
|
/// <summary>Gets the associated parameter name.</summary>
|
|
public string ParameterName { get; }
|
|
}
|
|
} |