Class BlockIdExpression
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
BlockNamestring
Properties
BlockName
public string BlockName { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out string)
public void Deconstruct(out string BlockName)
Parameters
BlockNamestring
Equals(BlockExpression?)
public override sealed bool Equals(BlockExpression? other)
Parameters
otherBlockExpression
Returns
Equals(BlockIdExpression?)
public bool Equals(BlockIdExpression? other)
Parameters
otherBlockIdExpression
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 ==(BlockIdExpression?, BlockIdExpression?)
public static bool operator ==(BlockIdExpression? left, BlockIdExpression? right)
Parameters
leftBlockIdExpressionrightBlockIdExpression
Returns
operator !=(BlockIdExpression?, BlockIdExpression?)
public static bool operator !=(BlockIdExpression? left, BlockIdExpression? right)
Parameters
leftBlockIdExpressionrightBlockIdExpression