< Dice | ExtensionMethods
Difference between revisions of "Dice/ExtensionMethods/IsUnary"
From DiceRoller Documentation
(Created page with "{{APIdoc|ExtensionMethods.IsUnary Method (MathOp)}} Determines whether or not the MathOp is a unary operator. {{ns}} == Syntax == <syntaxhighlight lang="...") |
|||
Line 17: | Line 17: | ||
=== Return Value === | === Return Value === | ||
+ | Type: System.Boolean | ||
+ | |||
Returns {{cs|true}} if MathOp is MathOp.Negate, and {{cs|false}} otherwise. | Returns {{cs|true}} if MathOp is MathOp.Negate, and {{cs|false}} otherwise. |
Latest revision as of 19:11, 25 April 2017
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.