< Dice‎ | ExtensionMethods
Revision as of 19:09, 25 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|ExtensionMethods.IsRoll Method (DieType)}} Determines whether or not the DieType represents a roll. {{ns}} == Syntax == <syntaxhighlight lang="C#">...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ExtensionMethods.IsRoll Method (DieType)

From DiceRoller Documentation

Determines whether or not the DieType represents a roll.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

internal static bool IsRoll(
    this DieType type
)

Parameters

type
Type: Dice.DieType
The DieType to check.

Return Value

Returns true if DieType is DieType.Normal, DieType.Fudge, or DieType.Group, and false otherwise.