Class DivAssign
- Namespace
- xFunc.Maths.Expressions.Programming
- Assembly
- xFunc.Maths.dll
Represents the "/=" operator.
public class DivAssign : VariableBinaryExpression, IExpression
- Inheritance
-
DivAssign
- Implements
- Inherited Members
- Extension Methods
Constructors
DivAssign(Variable, IExpression)
Initializes a new instance of the DivAssign class.
public DivAssign(Variable variable, IExpression exp)
Parameters
variableVariableThe variable.
expIExpressionThe expression.
Methods
AnalyzeInternal<TResult>(IAnalyzer<TResult>)
Analyzes the current expression.
protected override TResult AnalyzeInternal<TResult>(IAnalyzer<TResult> analyzer)
Parameters
analyzerIAnalyzer<TResult>The analyzer.
Returns
- TResult
The analysis result.
Type Parameters
TResultThe type of the result.
AnalyzeInternal<TResult, TContext>(IAnalyzer<TResult, TContext>, TContext)
Analyzes the current expression.
[ExcludeFromCodeCoverage]
protected override TResult AnalyzeInternal<TResult, TContext>(IAnalyzer<TResult, TContext> analyzer, TContext context)
Parameters
analyzerIAnalyzer<TResult, TContext>The analyzer.
contextTContextThe context.
Returns
- TResult
The analysis result.
Type Parameters
TResultThe type of the result.
TContextThe 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
variableVariableThe variable argument of new expression.
valueIExpressionThe 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
variableValueNumberValueThe value of variable.
valueNumberValueThe value.
Returns
- object
A result of the execution.