ProjectPropertyComparator.Compare method (Decimal, Decimal)

Compares two Decimal values to identify their relative positions in the sort order.

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

Syntax

'Declaration
Public Shared Function Compare ( _
    prop1 As Decimal, _
    prop2 As Decimal _
) As Integer
'Usage
Dim prop1 As Decimal
Dim prop2 As Decimal
Dim returnValue As Integer

returnValue = ProjectPropertyComparator.Compare(prop1, _
    prop2)
public static int Compare(
    decimal prop1,
    decimal prop2
)

Parameters

Return value

Type: System.Int32
Returns the positive difference between the parameter values if the first is a higher number than the second, returns the negative difference between the two parameter values if the first is a lower number than the second, or returns 0 if the two values are equal. The difference is expressed as an integer.

See also

Reference

ProjectPropertyComparator class

ProjectPropertyComparator members

Compare overload

Microsoft.Office.Project.Server.Library namespace