Indicates that the value of marked element could be null sometimes, so the check for null is necessary before its usage

Namespace: yWorks.Support.Annotations
Assembly: yWorks.yFilesNET.Viewer (in yWorks.yFilesNET.Viewer.dll) Version: 4.1.0.1 (4.1.0.1)

Syntax

C#
[AttributeUsageAttribute(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter|AttributeTargets.Delegate, AllowMultiple = false, 
	Inherited = true)]
public sealed class CanBeNullAttribute : Attribute
Visual Basic
<AttributeUsageAttribute(AttributeTargets.Method Or AttributeTargets.Property Or AttributeTargets.Field Or AttributeTargets.Parameter Or AttributeTargets.Delegate, AllowMultiple := False,  _
	Inherited := True)> _
Public NotInheritable Class CanBeNullAttribute _
	Inherits Attribute

Remarks

This attribute can be used by tools like Resharper to aid during coding and error analysis.

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    yWorks.Support.Annotations..::..CanBeNullAttribute

See Also