Constructor Command
Command(IEnumerable<string>, string, string)
Initializes a new instance of the Command class.
public Command(IEnumerable<string> spokenForms, string replacement, string descriptionKey)
Parameters
spokenFormsIEnumerable<string>The regex patterns representing spoken forms of the command.
replacementstringThe text replacement for this command.
descriptionKeystringThe resource key for the command description.
Exceptions
- ArgumentNullException
Thrown when
spokenForms,replacement, ordescriptionKeyisnull.- ArgumentException
Thrown when
spokenFormsis empty ordescriptionKeyis empty or whitespace.