Indicates that the value of marked element could be null sometimes, so the check for null is necessary before its usage
Namespace: yWorks.Support.AnnotationsAssembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)
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
System..::..Attribute
yWorks.Support.Annotations..::..CanBeNullAttribute