Summary

TransientAttribute can be applied to class or record member to prevent it serialization. It can be also applied to class or record type to specify that it members should not be serialized.

Syntax

TransientAttribute = class(TSerlnAttr);

Remarks

By default all public and published members of classes or records are serialized. Its possible to prevent serializing some members by marking them with TransientAttribute.

If a class or record has not been primarily designed for purposes of serialization, it can be marked with TransientAttribute as a whole. This will prevent all of its members from been serialized. However, if some of its members are still need to be serialized, they can be marked with NG.Serialization.SerializableAttribute explicitly.