DurationCompare Method
Compares two Duration values and returns an integer that indicates their relationship
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
Returns -1 if the first instance is less than the second, 0 if they are equal, or 1 if the first instance is greater than the second.
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
C#
public static int Compare(
Duration d1,
Duration d2
)VB
Public Shared Function Compare (
d1 As Duration,
d2 As Duration
) As IntegerC++
public:
static int Compare(
Duration d1,
Duration d2
)F#
static member Compare :
d1 : Duration *
d2 : Duration -> int Parameters
Return Value
Int32Returns -1 if the first instance is less than the second, 0 if they are equal, or 1 if the first instance is greater than the second.