TRttiTypeHelper Helper

Definition

Delphi
type TRttiTypeHelper = class helper(TClassHelperBase) for TRttiType
Inheritance
TClassHelperBase
TRttiTypeHelper

Properties

AncestorCount
AsClass
AsDynamicArray
AsInterface
BaseTypes
Constructors

Gets an enumerable collection which contains all constructor methods of the type, including inherited.

DefaultName
Fields

Gets a enumerable collection which contains all fields that the type contains, including inherited.

IsClass
IsClassOrInterface
IsDynamicArray
IsGenericType

Gets a value indicates whether the current type is generic.

IsInterface
IsString
Methods

Gets a enumerable collection which contains all methods that the type contains, including inherited.

Properties

Gets a enumerable collection which contains all properties that the type contains, including inherited.

Methods

GetAttributes(Boolean)

Returns all attributes specified on the type and if specified also of its ancestor types (for classes and interfaces).

GetConstructors

Returns all constructors

GetGenericArguments

Gets an array of types which contains all generic arguments.

GetGenericTypeDefinition

Returns a string that represents a generic type definition.

GetInterfaces

Returns an enumerable collection which contains all the interface Rtti types that the target type implements.

Note

Only Guid interfaces will be enumerated.

GetMember(string)
HasField(string)
HasMethod(string)
HasProperty(string)
IsAssignableFrom(TRttiType)

Determines whether an instance of the current TRttiType can be assigned from an instance of the specified TRttiType.

IsGenericTypeOf(PTypeInfo)
IsGenericTypeOf(string)

Determines whether the current type is of the specified generic type.

IsGenericTypeOf<T>
IsType(PTypeInfo)
IsType<T>
TryGetField(string, TRttiField)
TryGetMember(string, TRttiMember)
TryGetMethod(string, TRttiMethod)
TryGetProperty(string, TRttiProperty)