System.Rtti.TVirtualMethodInterceptor.DoBefore
Delphi
procedure DoBefore(Instance: TObject; Method: TRttiMethod; const Args: TArray<TValue>; out DoInvoke: Boolean; out Result: TValue);
C++
void __fastcall DoBefore(System::TObject* Instance, TRttiMethod* Method, const System::DynamicArray<TValue> Args, /* out */ bool &DoInvoke, /* out */ TValue &Result);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | System.Rtti.pas System.Rtti.hpp |
System.Rtti | TVirtualMethodInterceptor |
Description
Invokes the OnBefore event.
DoBefore is a protected virtual method that corresponds to the OnBefore event. When deriving from TVirtualMethodInterceptor, it may make more sense to override this method rather than subscribe to the OnBefore event, since users of the derived class may also want to subscribe to the same event.