/// <summary> /// Gets the parameters. /// </summary> /// <returns>A list with parameters and values or functions</returns> private void ParseParametersFormulas() { if (_camlQuery != null) { _parameterFormulas.Clear(); MatchCollection ms = _regex.Matches(_camlQuery); foreach (Match match in ms) { Debug.WriteLine(string.Format("Parameter - {0} - {1}", match.Groups[CAMLVariable].Value, match.Groups[CAMLFunction].Value)); _parameterFormulas.Add(match.Groups[CAMLVariable].Value, match.Groups[CAMLFunction].Value); } } }
/// <summary> /// Copies the variable values. /// </summary> /// <param name="keyValueList">The key value list.</param> public void CopyVariableValues(SPSKeyValueList keyValueList) { keyValueList.Clear(); _variableValues.ForEach(pair => keyValueList.Add(pair)); }
/// <summary> /// Clears the variable values. /// </summary> public void ClearVariableValues() { _variableValues.Clear(); }