< Dice‎ | ExtensionMethods
Revision as of 19:11, 25 April 2017 by Skizzerz (talk | contribs) (→‎Return Value)
(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

Type: System.Boolean

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