Skip to content

TMediatorDef.BetterMatch

Compares this definition against another for best match selection

Declaration

Source position: fpobserver.pp line 348

public 
function TMediatorDef.BetterMatch(M: TMediatorDef) : Boolean;

Description

The BetterMatch method compares this definition against another to determine which provides a better match for a given scenario. It considers property name specificity, class hierarchies, and mediator types.

This comparison logic ensures that the most specific and appropriate mediator is selected when multiple mediators could handle the same situation.

See also

Name Description
FindDefFor Finds the best mediator definition for given parameters