Table of Contents

Class BinaryEventArgs

Namespace
NCalc.Handlers
Assembly
NCalc.Core.dll

Provides data for binary expression evaluation events.

public class BinaryEventArgs : EventArgs
Inheritance
BinaryEventArgs
Inherited Members

Constructors

BinaryEventArgs(BinaryExpression, ILogicalExpressionVisitor<object?>, ILogicalExpressionVisitor<Task<object?>>, CancellationToken)

Provides data for binary expression evaluation events.

public BinaryEventArgs(BinaryExpression expression, ILogicalExpressionVisitor<object?> syncVisitor, ILogicalExpressionVisitor<Task<object?>> asyncVisitor, CancellationToken cancellationToken)

Parameters

expression BinaryExpression
syncVisitor ILogicalExpressionVisitor<object>
asyncVisitor ILogicalExpressionVisitor<Task<object>>
cancellationToken CancellationToken

Properties

BinaryExpression

public BinaryExpression BinaryExpression { get; }

Property Value

BinaryExpression

CancellationToken

The cancellation token for the operation.

public CancellationToken CancellationToken { get; }

Property Value

CancellationToken

HasResult

public bool HasResult { get; }

Property Value

bool

Result

Gets or sets the evaluation result of the binary expression.

public object? Result { get; set; }

Property Value

object

Methods

LeftValue()

Lazily evaluates and returns the left side expression. Resolved only once.

public object? LeftValue()

Returns

object

LeftValueAsync()

Lazily evaluates and returns the left side expression. Resolved only once.

public Task<object?> LeftValueAsync()

Returns

Task<object>

RightValue()

Lazily evaluates and returns the right side expression. Resolved only once.

public object? RightValue()

Returns

object

RightValueAsync()

public Task<object?> RightValueAsync()

Returns

Task<object>