[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TFindMethodEvent

Occurs when the streaming process needs to locate a method

Declaration

Source position: classesh.inc line 889

type TFindMethodEvent = procedure(

  Reader: TReader;

  const MethodName: String;

  var Address: Pointer;

  var Error: Boolean

) of object;

Description

If a TReaderinstance needs to locate a method and it doesn't find it in the streamed form, then the OnFindMethodevent handler will be called, if one is installed. This event can be assigned in order to use different locating methods. If a method is found, then its address should be returned in Address. The Errorshould be set to Trueif the reader should raise an exception after the event was handled. If it is set to Falseno exception will be raised, even if no method was found. On entry, Errorwill be set to True.