System.Rtti.TRttiType.AsOrdinal

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsOrdinal: TRttiOrdinalType read GetAsOrdinal;

C++

__property TRttiOrdinalType* AsOrdinal = {read=GetAsOrdinal};

Properties

Type Visibility Source Unit Parent
property public
System.Rtti.pas
System.Rtti.hpp
System.Rtti TRttiType

Description

Casts the TRttiType instance to a TRttiOrdinalType instance.

The AsOrdinal 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 IsOrdinal to verify whether the type can actually be typecasted.

See Also