Click or drag to resize
NotNullAttribute Class
Indicates that the value of the marked element could never be null
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Hangfire.AnnotationsNotNullAttribute

Namespace: Hangfire.Annotations
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
[AttributeUsageAttribute(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter|AttributeTargets.Delegate, AllowMultiple = false, 
	Inherited = true)]
public sealed class NotNullAttribute : Attribute

The NotNullAttribute type exposes the following members.

Constructors
  NameDescription
Public methodNotNullAttribute
Initializes a new instance of the NotNullAttribute class
Top
Examples
[NotNull] 
public object Foo() 
{
    return null; // Warning: Possible 'null' assignment
}
See Also