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="...")
(No difference)

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

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