Source/DiceTypes/DiceTypeResolver.cs
/// <summary>
/// Rolls a die of the specified type.
/// </summary>
/// <param name="type">The type of die to roll.</param>
/// <param name="roller">The die roller to use.</param>
/// <param name="sides">The number of sides on the die to roll.</param>
/// <returns>The result of the roll.</returns>
Rolls a die of the specified type.
Rolls a die of the specified type .
public static DiceExpressionResult Roll(DiceType type, IDieRoller roller, decimal sides)
		{
			if (_diceTypes.ContainsKey(type) == false)
			{
				throw new Exceptions.ImpossibleDieException($"There is no dice type handler for the dice type {type}");
			}
			return _diceTypes[type].Roll(roller, sides);
		}
public static DiceExpressionResult Roll ( DiceType type , IDieRoller roller , decimal sides ) { if ( _diceTypes . ContainsKey ( type ) == false ) { throw new Exceptions . ImpossibleDieException ( $" There is no dice type handler for the dice type  { type } " ) ; } return _diceTypes [ type ] . Roll ( roller , sides ) ; }
Rolls a die of the specified type.
Rolls a die of the specified type .
The result of the roll.
The result of the roll .
type
DiceType
The type of die to roll.
The type of die to roll .
roller
IDieRoller
The die roller to use.
The die roller to use .
sides
decimal
The number of sides on the die to roll.
The number of sides on the die to roll .