Photon Server API
Photon.SocketServer.Annotations.CanBeNullAttribute Class Reference

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

Inheritance diagram for Photon.SocketServer.Annotations.CanBeNullAttribute:

Detailed Description

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

[CanBeNull] public object Test() { return null; }
public void UseTest() {
var p = Test();
var s = p.ToString(); // Warning: Possible 'System.NullReferenceException'
}