/// <summary> /// Split received string on elements and params /// </summary> /// <param name="check"></param> /// <param name="split"></param> public void SplitOnElementsAndParams(ICheck check, ISplitString split) { elements = new List <string>(); foreach (var str in split.SplitBySlesh(url)) { if (check.CheckUrlOnParam(str)) { parameters = new Dictionary <string, string>(); string[] keyValue = split.SplitOnParameters(str); for (int i = 0; i < keyValue.Length - 1; i += 2) { parameters.Add(keyValue[i], keyValue[i + 1]); } } else { elements.Add(str); } } }