RollerConfig.MaxSides Property

From DiceRoller Documentation

Gets or sets the maximum number of sides a single die may have.

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

Syntax

public int MaxSides { get; set; }

Property Value

Type: System.Int32

The maximum number of sides that any individual die can have. Exceeding this limit will result in a DiceException being thrown with DiceErrorCode.BadSides.

Remarks

The default value for MaxSides is 10,000. This limit is purely arbitrary, and nothing is impacted by changing it.