Skip to content

TObject.ClassNameIs

Check whether the class name equals the given name.

Declaration

Source position: objpash.inc line 295

public 
class function ClassNameIs(const name: RTLString) : Boolean;  overload; overload;

class function ClassNameIs(const name: ShortString) : Boolean;

Description

ClassNameIs checks whether Name equals the class name. It takes of case sensitivity.

See also

Name Description
ClassInfo Return a pointer to the type information for this class.
ClassType Return a "class of" pointer for the current class.
ClassName Return the current class name.