Table of Contents

Class BlockIdExpression

Namespace
CilFi.Patterns
Assembly
CilFi.Core.dll

Represents an expression that references a block by its name.

public sealed record BlockIdExpression : BlockExpression, IEquatable<BlockExpression>, IEquatable<BlockIdExpression>
Inheritance
BlockIdExpression
Implements
Inherited Members

Constructors

BlockIdExpression(string)

Represents an expression that references a block by its name.

public BlockIdExpression(string BlockName)

Parameters

BlockName string

Properties

BlockName

public string BlockName { get; init; }

Property Value

string

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out string)

public void Deconstruct(out string BlockName)

Parameters

BlockName string

Equals(BlockExpression?)

public override sealed bool Equals(BlockExpression? other)

Parameters

other BlockExpression

Returns

bool

Equals(BlockIdExpression?)

public bool Equals(BlockIdExpression? other)

Parameters

other BlockIdExpression

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 ==(BlockIdExpression?, BlockIdExpression?)

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

Parameters

left BlockIdExpression
right BlockIdExpression

Returns

bool

operator !=(BlockIdExpression?, BlockIdExpression?)

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

Parameters

left BlockIdExpression
right BlockIdExpression

Returns

bool