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
- 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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.