Class AddAssign
- Namespace
- xFunc.Maths.Expressions.Programming
- Assembly
- xFunc.Maths.dll
Represents the "+=" operator.
public class AddAssign : VariableBinaryExpression, IExpression
- Inheritance
-
AddAssign
- Implements
- Inherited Members
- Extension Methods
Constructors
AddAssign(Variable, IExpression)
Initializes a new instance of the AddAssign class.
public AddAssign(Variable variable, IExpression exp)
Parameters
variable
VariableThe variable.
exp
IExpressionThe expression.
Methods
AnalyzeInternal<TResult>(IAnalyzer<TResult>)
Analyzes the current expression.
protected override TResult AnalyzeInternal<TResult>(IAnalyzer<TResult> analyzer)
Parameters
analyzer
IAnalyzer<TResult>The analyzer.
Returns
- TResult
The analysis result.
Type Parameters
TResult
The type of the result.
AnalyzeInternal<TResult, TContext>(IAnalyzer<TResult, TContext>, TContext)
Analyzes the current expression.
protected override TResult AnalyzeInternal<TResult, TContext>(IAnalyzer<TResult, TContext> analyzer, TContext context)
Parameters
analyzer
IAnalyzer<TResult, TContext>The analyzer.
context
TContextThe context.
Returns
- TResult
The analysis result.
Type Parameters
TResult
The type of the result.
TContext
The type of additional parameter for analyzer.
Clone(Variable?, IExpression?)
Clones this instance of the IExpression.
public override IExpression Clone(Variable? variable = null, IExpression? value = null)
Parameters
variable
VariableThe variable argument of new expression.
value
IExpressionThe value argument of new expression.
Returns
- IExpression
Returns the new instance of IExpression that is a clone of this instance.
Execute(NumberValue, NumberValue)
Executes this expression.
protected override object Execute(NumberValue variableValue, NumberValue value)
Parameters
variableValue
NumberValueThe value of variable.
value
NumberValueThe value.
Returns
- object
A result of the execution.