System.Rtti.TRttiType.AsInstance
Delphi
property AsInstance: TRttiInstanceType read GetAsInstance;
C++
__property TRttiInstanceType* AsInstance = {read=GetAsInstance};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Rtti.pas System.Rtti.hpp |
System.Rtti | TRttiType |
Description
Casts the TRttiType instance to a TRttiInstanceType instance.
The AsInstance property 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 IsInstance to verify whether the type can actually be typecast.