Class
OperatorInfo

Describes an operator's symbol, precedence, and associativity for use in expression parsing and evaluation.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class OperatorInfo

Inheritance: objectOperatorInfo

Constructors

OperatorInfo(string, int, OperatorAssociativity)

Initializes a new operator descriptor with the specified symbol, precedence, and associativity.

Declaration

cs-api-definition
public OperatorInfo(string symbol, int precedence, OperatorAssociativity associativity)

Parameters

symbol

string

The symbol.

precedence

int

The precedence.

associativity

OperatorAssociativity

The associativity.

Properties

Associativity

Gets whether this operator evaluates left-to-right or right-to-left when operators of equal precedence appear together.

Declaration

cs-api-definition
public OperatorAssociativity Associativity { get; }

Property Value

OperatorAssociativity

The associativity.

Precedence

Gets the precedence value determining evaluation order, with lower numbers evaluated first.

Declaration

cs-api-definition
public int Precedence { get; }

Property Value

int

The precedence.

Symbol

Gets the character or characters that represent this operator (e.g., "+", "*", "<=").

Declaration

cs-api-definition
public string Symbol { get; }

Property Value

string

The symbol.