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

TWriteMethodPropertyEvent

Callback for the TWriter.OnWriteMethodPropertyevent.

Declaration

Source position: classesh.inc line 1076

type TWriteMethodPropertyEvent = procedure(

  Writer: TWriter;

  Instance: TPersistent;

  PropInfo: PPropInfo;

  const MethodValue: TMethod;

  const DefMethodCodeValue: Pointer;

  var Handled: Boolean

) of object;

Description

TWriteMethodPropertyEventis the prototype for the TWriter.OnWriteMethodPropertyevent. Writeris the sender of the event, Instanceis the instance that is being streamed. PropInfois a pointer to the RTTI information for the property being written, and MethodValueis the value of the method that the property was set to. DefMethodCodeValueis set to the default value of the property (Nil or the parent value). Handledshould be set to Trueif the handler set the property succesfully.

See also

TWriter.OnWriteMethodProperty

  

Handler from writing method properties.