Test additional content header

Condition Class

Class that represents a Boolean value, which can be either true or false.

Definition

Namespace: Fluent.Calculations.Primitives.BaseTypes
Assembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
public sealed class Condition : Value, 
	IEqualityOperators<Condition, Condition, Condition>, IBitwiseOperators<Condition, Condition, Condition>
Inheritance
Object    Value    Condition
Implements
IBitwiseOperatorsCondition, Condition, Condition, IEqualityOperatorsCondition, Condition, Condition

Remarks

Class provides same operators as System.Boolean and hence can be seamlessly used in typical logical expressions.

Constructors

Condition Initializes a new instance of the Condition.
Condition(MakeValueArgs) Class that represents a Boolean value, which can be either true or false.

Properties

ExpressionMetadata of expression that yielded this value.
(Inherited from Value)
IsTrueGets a boolean value representing if the Condition state is true.
NameName of value
(Inherited from Value)
OriginOrigin type of the value.
(Inherited from Value)
PrimitiveNumeric primitive representation of the value.
(Inherited from Value)
PrimitiveStringFormatted string representation of underlying boolean value.
(Overrides ValuePrimitiveString)
ScopeNamed scope that this value is part of
(Inherited from Value)
TagsCustom tags associated with the value.
(Inherited from Value)
TypeOriginal type of the value implementation.
(Inherited from Value)

Methods

Equals(IValueProvider) Determines whether two Values are equal based on underlying primitive value.
(Inherited from Value)
Equals(Object)Determines whether two Conditions are equal based on underlying primitive value.
(Overrides ValueEquals(Object))
False(String)Gets an instance of Conditon representing False state.
False(String, String)Gets an instance of Conditon representing False state.
GetHashCodeServes as the default hash function, returns hash of the Primitive property value. This function is a subject to future change.
(Overrides ValueGetHashCode)
MakeDefault Initializes new instance of the Condition representing False condition.
(Overrides ValueMakeDefault)
MakeOfThisTypeInitializes a new instance of Condition class.
(Overrides ValueMakeOfThisType(MakeValueArgs))
ToStringReturns a string that represents the name of the value.
(Overrides ValueToString)
True(String)Gets an instance of Conditon representing True state.
True(String, String)Gets an instance of Conditon representing True state.

Operators

BitwiseAnd(Condition, Condition)Computes the logical AND of specified operands.
BitwiseOr(Condition, Condition)Computes the logical OR of specified operands.
Equality(Condition, Condition)Returns a value that indicates whether two Conditions values are equal.
ExclusiveOr(Condition, Condition)Computes the exclusive-or of two values.
False(Condition)Returns the bool value to indicate if the Condition states is false.
(Boolean to Condition) Implicit converstion from Boolean to Condition.
(Condition to Boolean) Implicit converstion from Condition to native Boolean value.
Inequality(Condition, Condition)Returns a value that indicates whether two Conditions have different values.
OnesComplement(Condition)Computes the ones-complement representation of a given value.
True(Condition)Returns the bool value to indicate if the Condition states is true.

See Also