< Dice | ExtensionMethods
ExtensionMethods.IsUnary Method (MathOp)
From DiceRoller Documentation
Determines whether or not the MathOp is a unary operator.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
internal static bool IsUnary(
this MathOp op
)
Parameters
- op
- Type: Dice.AST.MathOp
- The MathOp to check.
Return Value
Type: System.Boolean
Returns true
if MathOp is MathOp.Negate, and false
otherwise.