< Dice‎ | ExtensionMethods
Revision as of 19:11, 25 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|ExtensionMethods.IsUnary Method (MathOp)}} Determines whether or not the MathOp is a unary operator. {{ns}} == Syntax == <syntaxhighlight lang="...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Returns true if MathOp is MathOp.Negate, and false otherwise.