Summary

Null method allows to serialize null or nil like values.

Syntax

procedure Null;

Remarks

Use Null method if a nil object reference need to be serialized. Null is a low-level method, which is used by the serialization engine itself when serializing nil object values. So, its perfectly valid to use Value method instead of Null method to serialize null values:

DelphiCopyCode imageCopy Code
S.Value<TObject>(nil);