Skip to content

ExpressionFormatter(HashSet string )

Yi Zhang edited this page May 28, 2018 · 3 revisions

Namespace: FormatterClassLibrary

Description: Initializes an instance of ExpressionFormatter class with predefined unary operators.

Parameters Description
unarys<HashSet<string>> all unary operators that will be recognized by formatter

Examples:

var unarys = new HashSet<string>() { "!", "sin", "log" };
var formatter = new ExpressionFormatter(unarys);

Remarks:

The formatter will only recognize unary operators passed into constructor upon instantiation. The unary operators passed into the constructor must match the unary operators in the expressions Exactly for the formatter to work properly.

Clone this wiki locally