C# Class xFunc.Maths.Helpers

The helper class with additional methods.
Afficher le fichier Open project: sys27/xFunc

Méthodes publiques

Méthode Description
ConvertExpressionToCollection ( IExpression expression ) : IEnumerable

Converts the logic expression to collection.

GetAllVariables ( IExpression expression ) : IEnumerable

Gets all variables.

GetParameters ( IEnumerable tokens ) : ParameterCollection

Gets parameters of expression.

HasVariable ( IExpression expression, xFunc.Maths.Expressions.Variable arg ) : bool

Checks that expression has the arg variable.

Private Methods

Méthode Description
ConvertToColletion ( IExpression expression, List collection ) : void
GetAllVariables ( IExpression expression, HashSet collection ) : void

Method Details

ConvertExpressionToCollection() public static méthode

Converts the logic expression to collection.
The variable is null.
public static ConvertExpressionToCollection ( IExpression expression ) : IEnumerable
expression IExpression The expression.
Résultat IEnumerable

GetAllVariables() public static méthode

Gets all variables.
is null.
public static GetAllVariables ( IExpression expression ) : IEnumerable
expression IExpression The expression.
Résultat IEnumerable

GetParameters() public static méthode

Gets parameters of expression.
public static GetParameters ( IEnumerable tokens ) : ParameterCollection
tokens IEnumerable The list of tokens.
Résultat ParameterCollection

HasVariable() public static méthode

Checks that expression has the arg variable.
public static HasVariable ( IExpression expression, xFunc.Maths.Expressions.Variable arg ) : bool
expression IExpression The expression that is checked.
arg xFunc.Maths.Expressions.Variable The variable that can be contained in the expression.
Résultat bool