API Reference
Class
ParameterHelper
Lightweight helpers to read typed options from loosely-typed parameter bags used by hosts (CLI/PowerShell/TestimoX). Keeps parsing logic out of services and rules.
Inheritance
- Object
- ParameterHelper
Methods
public static Boolean GetBool(IDictionary<String, Object> parameters, String key, Boolean defaultValue = false) #Returns:
BooleanReads a boolean parameter (accepts bool or string "true"/"false"). Returns defaultValue when key is missing or invalid.
Parameters
- parameters System.Collections.Generic.IDictionary{System.String,System.Object}
- key System.String
- defaultValue System.Boolean = false
public static IEnumerable<String> GetStrings(IDictionary<String, Object> parameters, String key) #Returns:
IEnumerable<String>Reads a string sequence parameter. Accepts string (CSV) or IEnumerable<string>.
Parameters
- parameters System.Collections.Generic.IDictionary{System.String,System.Object}
- key System.String