forked from IronLanguages/dlr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotNullAttribute.cs
More file actions
27 lines (23 loc) · 1.06 KB
/
NotNullAttribute.cs
File metadata and controls
27 lines (23 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
#nullable enable
using System;
namespace Microsoft.Scripting.Runtime {
/// <summary>
/// This attribute marks a parameter that is not allowed to be null.
/// It is used by the method binding infrastructure to generate better error
/// messages and method selection.
/// </summary>
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
public sealed class NotNullAttribute : Attribute {
}
/// <summary>
/// This attribute marks a parameter whose type is an array that is not allowed to have null items.
/// It is used by the method binding infrastructure to generate better error
/// messages and method selection.
/// </summary>
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
public sealed class NotNullItemsAttribute : Attribute {
}
}