Class BlockAndExpression
Represents an expression that computes the logical AND between two expressions.
public sealed record BlockAndExpression : BlockExpression, IEquatable<BlockExpression>, IEquatable<BlockAndExpression>
- Inheritance
-
BlockAndExpression
- Implements
- Inherited Members
Constructors
BlockAndExpression(BlockExpression, BlockExpression)
Represents an expression that computes the logical AND between two expressions.
public BlockAndExpression(BlockExpression Left, BlockExpression Right)
Parameters
LeftBlockExpressionThe left-hand side of the expression
RightBlockExpressionThe right-hand side of the expression
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Left
The left-hand side of the expression
public BlockExpression Left { get; init; }
Property Value
Right
The right-hand side of the expression
public BlockExpression Right { get; init; }
Property Value
Methods
Deconstruct(out BlockExpression, out BlockExpression)
public void Deconstruct(out BlockExpression Left, out BlockExpression Right)
Parameters
LeftBlockExpressionRightBlockExpression
Equals(BlockAndExpression?)
public bool Equals(BlockAndExpression? other)
Parameters
otherBlockAndExpression
Returns
Equals(BlockExpression?)
public override sealed bool Equals(BlockExpression? other)
Parameters
otherBlockExpression
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Evaluate(BlockExpressionContext)
Evaluates the expression.
public override bool Evaluate(BlockExpressionContext context)
Parameters
contextBlockExpressionContextThe context to evaluate the expression in.
Returns
- bool
The result of the expression
Format(IndentedTextWriter)
Formats and writes the expression to the provided output stream.
public override void Format(IndentedTextWriter writer)
Parameters
writerIndentedTextWriterThe output stream.
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BlockAndExpression?, BlockAndExpression?)
public static bool operator ==(BlockAndExpression? left, BlockAndExpression? right)
Parameters
leftBlockAndExpressionrightBlockAndExpression
Returns
operator !=(BlockAndExpression?, BlockAndExpression?)
public static bool operator !=(BlockAndExpression? left, BlockAndExpression? right)
Parameters
leftBlockAndExpressionrightBlockAndExpression