Summary

BeginObject method is a low-level method, which allows to serialize object like data manually. Every call to BeginObject method should be matched by a call to NG.Serialization.TSerializer.EndObject method.

Syntax

procedure BeginObject; overload;

Remarks

This overload of BeginObject method can be used in simple cases, when the object values are not expected to be polymorphic, and thus no object value class type name should be stored in output medium. For a complete discussion of how an when to use BeginObject method look at another one BeginObject method overload description.

Examples

DelphiCopyCode imageCopy Code
S.BeginObject;
S.Prop('X').Value(MyPoint.X);
S.Prop('Y').Value(MyPoint.Y);
S.EndObject;