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.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

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