Class Bool
- Namespace
- xFunc.Maths.Expressions.LogicalAndBitwise
- Assembly
- xFunc.Maths.dll
Represents the boolean constant.
public class Bool : IExpression, IEquatable<Bool>- Inheritance
- 
      
      Bool
- Implements
- Inherited Members
- Extension Methods
Fields
False
The false constant.
public static readonly Bool FalseField Value
True
The true constant.
public static readonly Bool TrueField Value
Properties
Value
Gets the value of this expression.
public bool Value { get; }Property Value
Methods
Analyze<TResult>(IAnalyzer<TResult>)
Analyzes the current expression.
public TResult Analyze<TResult>(IAnalyzer<TResult> analyzer)Parameters
- analyzerIAnalyzer<TResult>
- The analyzer. 
Returns
- TResult
- The analysis result. 
Type Parameters
- TResult
- The type of the result. 
Analyze<TResult, TContext>(IAnalyzer<TResult, TContext>, TContext)
Analyzes the current expression.
public TResult Analyze<TResult, TContext>(IAnalyzer<TResult, TContext> analyzer, TContext context)Parameters
- analyzerIAnalyzer<TResult, TContext>
- The analyzer. 
- contextTContext
- The context. 
Returns
- TResult
- The analysis result. 
Type Parameters
- TResult
- The type of the result. 
- TContext
- The type of additional parameter for analyzer. 
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)Parameters
- objobject
- The object to compare with the current object. 
Returns
Equals(Bool?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Bool? other)Parameters
- otherBool
- An object to compare with this object. 
Returns
Execute()
Executes this expression. Don't use this method if your expression has variables or user-functions.
public object Execute()Returns
- object
- A result of the execution. 
Execute(ExpressionParameters?)
Executes this expression.
public object Execute(ExpressionParameters? parameters)Parameters
- parametersExpressionParameters
- An object that contains all parameters and functions for expressions. 
Returns
- object
- A result of the execution. 
- See Also
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
- A string that represents the current object. 
ToString(IFormatter)
Returns a string that represents this instance.
public string ToString(IFormatter formatter)Parameters
- formatterIFormatter
- The formatter. 
Returns
Operators
implicit operator Bool(bool)
public static implicit operator Bool(bool value)Parameters
- valuebool
- The value. 
Returns
- Bool
- The result of the conversion. 
implicit operator bool(Bool?)
public static implicit operator bool(Bool? boolean)Parameters
- booleanBool
- The boolean. 
Returns
- bool
- The result of the conversion.