< Dice | MacroContext
MacroContext.Arguments Property
From DiceRoller Documentation
Gets the arguments of the macro (including the name), if using the recommended method of separating arguments with colons.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
public IReadOnlyList<string> Arguments { get; private set; }
Property Value
Type: System.String
The arguments of the macro, with the macro name as the first item in the list.
Remarks
All leading and trailing whitespace is trimmed from each argument, so the macro [ a : b : c ]
and the macro [a:b:c]
have equivalent Arguments ("a", "b", "c"
). Arguments[0]
is always the name of the macro (equivalent to the Name property). If internal whitespace is important, you will need to parse the Param property yourself in order to preserve the spaces.