Share via


Literal.CompareTo Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Compares one literal to another literal.

Namespace:  Microsoft.SolverFoundation.Solvers
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Public Function CompareTo ( _
    lit As Literal _
) As Integer
public int CompareTo(
    Literal lit
)
public:
virtual int CompareTo(
    Literal lit
) sealed
abstract CompareTo : 
        lit:Literal -> int 
override CompareTo : 
        lit:Literal -> int 
public final function CompareTo(
    lit : Literal
) : int

Parameters

Return Value

Type: System.Int32
The following table describes the possible return values.

Return value

Description

-1

The literal is smaller than lit.

0

The literal is equal to lit.

1

The literal is greater than lit.

Implements

IComparable<T>.CompareTo(T)

.NET Framework Security

See Also

Reference

Literal Structure

Microsoft.SolverFoundation.Solvers Namespace