New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class OperatorInfo

Inheritance: objectOperatorInfo

Constructors

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

C#
public OperatorInfo(string symbol, int precedence, OperatorAssociativity associativity)
Parameters:symbolstring

The symbol.

precedenceint

The precedence.

associativityOperatorAssociativity

The associativity.

Properties

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

C#
public OperatorAssociativity Associativity { get; }
Property Value:

The associativity.

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

C#
public int Precedence { get; }
Property Value:

The precedence.

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

C#
public string Symbol { get; }
Property Value:

The symbol.