CanBeNullAttribute Class |
Namespace: Ozeki.Common
The CanBeNullAttribute type exposes the following members.
Name | Description | |
---|---|---|
CanBeNullAttribute | Initializes a new instance of the CanBeNullAttribute class |
[CanBeNull] public object Test() { return null; } public void UseTest() { var p = Test(); var s = p.ToString(); // Warning: Possible 'System.NullReferenceException' }