[Overview][Classes][Procedures and functions][Index] Reference for unit 'LazMethodList' (#lazutils)

CompareMethods

Performs a comparison between the specified methods.

Declaration

Source position: lazmethodlist.pas line 67

function CompareMethods(

  const m1: TMethod;

  const m2: TMethod

):Boolean;

Arguments

m1

  

Method for the comparison.

m2

  

Another method for the comparison.

Function result

True when the compared methods share the same code and data.

Description

CompareMethods is a Boolean function used to compare the specified methods. m1 and m2 are TMethod parameters with the values compared in the function. The comparison examines the Code and Data members in the TMethod records. The return value is True when the Code and Data members are identical in both records.