Literal.CompareTo Method

Solver Foundation 3.0

[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)

public int CompareTo(
	Literal lit
)

Parameters

lit
Type: Microsoft.SolverFoundation.Solvers.Literal
A literal.

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)

Show: