Table of Contents

Class BlockAndExpression

Namespace
CilFi.Patterns
Assembly
CilFi.Core.dll

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

Left BlockExpression

The left-hand side of the expression

Right BlockExpression

The right-hand side of the expression

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Left

The left-hand side of the expression

public BlockExpression Left { get; init; }

Property Value

BlockExpression

Right

The right-hand side of the expression

public BlockExpression Right { get; init; }

Property Value

BlockExpression

Methods

Deconstruct(out BlockExpression, out BlockExpression)

public void Deconstruct(out BlockExpression Left, out BlockExpression Right)

Parameters

Left BlockExpression
Right BlockExpression

Equals(BlockAndExpression?)

public bool Equals(BlockAndExpression? other)

Parameters

other BlockAndExpression

Returns

bool

Equals(BlockExpression?)

public override sealed bool Equals(BlockExpression? other)

Parameters

other BlockExpression

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Evaluate(BlockExpressionContext)

Evaluates the expression.

public override bool Evaluate(BlockExpressionContext context)

Parameters

context BlockExpressionContext

The 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

writer IndentedTextWriter

The output stream.

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BlockAndExpression?, BlockAndExpression?)

public static bool operator ==(BlockAndExpression? left, BlockAndExpression? right)

Parameters

left BlockAndExpression
right BlockAndExpression

Returns

bool

operator !=(BlockAndExpression?, BlockAndExpression?)

public static bool operator !=(BlockAndExpression? left, BlockAndExpression? right)

Parameters

left BlockAndExpression
right BlockAndExpression

Returns

bool