DiceFunctionAttribute Constructor (String)
From DiceRoller Documentation
Constructs a new instance of DiceFunctionAttribute.
- Namespace: Dice
 - Assembly: DiceRoller (in DiceRoller.dll)
 
Syntax
public DiceFunctionAttribute(
    string name
)
Parameters
- name
 - Type: System.String
 - The name of the dice function, case insensitive.
 
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | name is null.
 | 
Remarks
Dice function names are case insensitive and must be unique for a given Scope. It is an error to define a dice function with the same name as a built-in function. Duplicate name errors are not caught as part of this constructor; rather, they are caught when registering the function.