Summary

RegisterClass procedure allows to register class type in serialization engine.

Syntax

class procedure RegisterClass(AClass: TClass);

Parameters

AClass

Type: TClass

A class type to register.

Remarks

Sometimes its required to register classes to initialize class type descriptors before de-serializing data. Otherwise, the situation is possible, when de-serializer will be unable to find de-serialized object type. Look at NG.Serialization.TMetadata description for more info.