Compares two specified System.Guid objects and returns an integer that indicates their relationship to one another in the sort order.

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static int Compare(
	Guid g1,
	Guid g2
)
Visual Basic
Public Shared Function Compare ( 
	g1 As Guid,
	g2 As Guid
) As Integer
Visual C++
public:
static int Compare(
	Guid g1, 
	Guid g2
)
F#
static member Compare : 
        g1 : Guid * 
        g2 : Guid -> int 

Parameters

g1
Type: System..::..Guid
The first System.Guid.
g2
Type: System..::..Guid
The second System.Guid.

Return Value

Type: Int32
A 32-bit signed integer indicating the relationship between the two comparands. Value Condition Less than zero g1 is less than g2. Zero g1 equals g2. Greater than zero g1 is greater than g2.

See Also