System.HasWeakRef

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function HasWeakRef(TypeId): Boolean;

Description

HasWeakRef function returns True if the type T is WEAKREF type.
This function is useful for inline functions and generic contexts if the type is statically determined.

Note: HasWeakRef is similar to System.TypInfo.HasWeakRef except that you must use TypeId instead of PTypeInfo.

See Also