Class NotNullAttribute
Indicates that the value of the marked element could never be null
Implements
Inherited Members
Namespace: JetBrains.Annotations
Assembly: UnityEngine.dll
Syntax
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Delegate, AllowMultiple = false, Inherited = true)]
public sealed class NotNullAttribute : Attribute, _Attribute
Examples
[NotNull] public object Foo() {
return null; // Warning: Possible 'null' assignment
}