Class CommandHelper
- Namespace
- TechnologySolutions.Rfid.AsciiProtocol
- Assembly
- TechnologySolutions.Rfid.AsciiProtocol.Core.dll
Provides utility methods for helping with commands
public static class CommandHelper
- Inheritance
-
CommandHelper
- Inherited Members
Methods
SplitParameters(string)
Splits the given line into parameters separated by '-' but preserving quoted ("like - this") strings
public static ICollection<string> SplitParameters(string value)
Parameters
value
stringThe parameters to parse
Returns
- ICollection<string>
The individual parameters parsed from the line
ValidateAndParseSwitchParameter(string, out IEnumerable<string>)
Parses a command line or PR: value and outputs the parameters in the case where a single -s parameter is expected Returns validation messages for any errors encountered
public static ICollection<string> ValidateAndParseSwitchParameter(string parameterLine, out IEnumerable<string> parameters)
Parameters
parameterLine
stringThe parameters to parse
parameters
IEnumerable<string>output the parameter line split into individual parameters
Returns
- ICollection<string>
Any validation messages arising from parsing the parameter line