Summary

Value method allows to de-serialize typed data value. Both, simple types, such as Integer or string, and complex types, such as records, objects or arrays can be de-serialized using Value method. This  overload of Value methods implements fill-read mode.

Syntax

procedure Value<T>(const V: T); overload;

Type Parameters

T
Specifies type of de-serializing value.

Parameters

V

Type: T

Value, which is real or logical reference to data to read into.

Remarks

For general discussion about how and when to use Value method, look at description of another one Value method overload. This overload differs from another one by the fact that is works in fill-read mode. Fill-read mode is kind of reading by reference mode. In this mode the value itself should be a reference to some data to read into. This why the value itself treated as constant and never changed by the Value method. For a complete discussion about fill-read mode look at NG.Serialization.FillReadAttribute description.

Examples

DelphiCopyCode imageCopy Code
cust := TMyCustomer.Create;
D.Value<TMyCustomer>(cust);