System.Rtti.TRttiType.AsRecord
Delphi
property AsRecord: TRttiRecordType read GetAsRecord;
C++
__property TRttiRecordType* AsRecord = {read=GetAsRecord};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Rtti.pas System.Rtti.hpp |
System.Rtti | TRttiType |
Description
Cast the TRttiType instance to a TRttiRecordType instance.
The AsRecord is provided as a convenience to the developer. Instead of typecasting code, you can use the provided property to do that for you.
Note: Be sure to call IsRecord to verify whether the type can actually be typecast.