Occurs when the streaming process needs to locate a method.
Source position: classesh.inc line 1839
type TFindMethodEvent = procedure( |
Reader: TReader; |
const MethodName: string; |
var Address: CodePointer; |
var Error: Boolean |
) of object; |
If a TReader instance needs to locate a method and it doesn't find it in the streamed form, then the OnFindMethod event 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 Error should be set to True if the reader should raise an exception after the event was handled. If it is set to False no exception will be raised, even if no method was found. On entry, Error will be set to True.