Class ParameterExtensions
- Namespace
- TechnologySolutions.Rfid.AsciiProtocol.Parameters
- Assembly
- TechnologySolutions.Rfid.AsciiProtocol.Core.dll
Extension methods for parameters
public static class ParameterExtensions
- Inheritance
-
ParameterExtensions
- Inherited Members
Methods
Parse(ParameterCollection, string)
Parses a PR: value for parameters and updates the command with the values parsed
public static IEnumerable<string> Parse(this ParameterCollection parameters, string parameterLine)
Parameters
parameters
ParameterCollectionThe parameters collection used to validate the parameterLine
parameterLine
stringThe line containing parameters to parse
Returns
- IEnumerable<string>
The individual parameters from the line
ValidateAndParse(ParameterCollection, string)
Parses a command line or PR: value and updates the commands parameter to match. Returns validation messages for any errors encountered
public static ICollection<string> ValidateAndParse(this ParameterCollection parameters, string parameterLine)
Parameters
parameters
ParameterCollectionThe parameters collection used to validate the parameterLine
parameterLine
stringThe parameters to parse
Returns
- ICollection<string>
Any validation messages arising from parsing the parameter line
ValidateAndParse(ParameterCollection, string, out IEnumerable<string>)
Parses a command line or PR: value and updates the commands parameter to match. Returns validation messages for any errors encountered
public static ICollection<string> ValidateAndParse(this ParameterCollection parameters, string parameterLine, out IEnumerable<string> parameterSet)
Parameters
parameters
ParameterCollectionThe parameters collection used to validate the parameterLine
parameterLine
stringThe parameters to parse
parameterSet
IEnumerable<string>output the parameter line split into individual parameters
Returns
- ICollection<string>
Any validation messages arising from parsing the parameter line