Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetValue()

static double MS.Internal.Xml.XPath.NumericExpr.GetValue ( Operator::Op op,
double n1,
double n2 )
inlinestaticprivate

Definition at line 51 of file NumericExpr.cs.

52 {
53 return op switch
54 {
57 Operator.Op.MOD => n1 % n2,
58 Operator.Op.DIV => n1 / n2,
59 Operator.Op.MUL => n1 * n2,
60 _ => 0.0,
61 };
62 }

References System.Xml.Dictionary.

Referenced by MS.Internal.Xml.XPath.NumericExpr.Evaluate().