Indicates that the value of the marked element could be null sometimes,
so the check for null is necessary before its usage
Inheritance HierarchySystemObject
SystemAttribute
Ozeki.CommonCanBeNullAttribute
Namespace:
Ozeki.Common
Assembly:
OzekiSDK (in OzekiSDK.dll) Version: 10.3.183.0
Syntaxpublic sealed class CanBeNullAttribute : Attribute
Public NotInheritable Class CanBeNullAttribute
Inherits Attribute
public ref class CanBeNullAttribute sealed : public Attribute
[<SealedAttribute>]
type CanBeNullAttribute =
class
inherit Attribute
end
The CanBeNullAttribute type exposes the following members.
Constructors
Examples[CanBeNull] public object Test() { return null; }
public void UseTest() {
var p = Test();
var s = p.ToString();
}
See Also