[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Defines a Boolean variable or the negation of a Boolean variable.
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
'Declaration Public Structure Literal _ Implements IComparable(Of Literal)
public struct Literal : IComparable<Literal>
public value class Literal : IComparable<Literal>
[<Sealed>] type Literal = struct interface IComparable<Literal> end
JScript supports the use of structures, but not the declaration of new ones.
The Literal type exposes the following members.
|Literal||Initializes a new instance of the Literal class.|
|Id||Gets the identifier of a literal.|
|IsNil||Gets a value that indicates whether a literal is nulla null reference (Nothing in Visual Basic).|
|Sense||Gets a value that indicates whether a literal is signed.|
|Var||Gets the Boolean variable that forms a literal.|
|CompareTo||Compares one literal to another literal.|
|Equals||Returns a value that indicates whether a literal is equal to an object. (Overrides ValueType.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Computes the hash code of a value. (Overrides ValueType.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Converts the numeric value of the current literal to its equivalent string representation. (Overrides ValueType.ToString().)|
|Equality||Returns a value that indicates whether two literals are equal.|
|GreaterThan||Returns a value that indicates whether one literal is greater than another literal.|
|GreaterThanOrEqual||Returns a value that indicates whether one literal is greater than or equal to another literal.|
|Inequality||Returns a value that indicates whether two literals are unequal.|
|LessThan||Returns a value that indicates whether one literal is less than another literal.|
|LessThanOrEqual||Returns a value that indicates whether one literal is less than or equal to another literal.|
|OnesComplement||Returns the bitwise one's complement of a literal.|
|Nil||Represents the null literal.|
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.