JCL Help:AssertKindOf@TClass@TObject

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Asserts that an object is of a specified class.


Pascal

 procedure AssertKindOf(const ClassName: string; const Obj: TObject); overload;
procedure AssertKindOf(const ClassType: TClass; const Obj: TObject); overload;


Parameters

Parameters Description
const ClassName: string Name of the class to test Obj for.
const Obj: TObject The object to test.


Description

AssertKindOf asserts that the specified object is of the specified type or inherits from that type. If this is not the case the function triggers an assertion failure. The overloaded procedure allows you to directly specify a class type instead of a class name.


About

Unit

JclDebug


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page