public static String replaceOccupiedParameters(String url, Map<String, String> paths) {String result = url;for (Map.Entry<String, String> entry : paths.entrySet()) {String key = entry.getKey();String value = entry.getValue();String target = "[" + key + "]";result = result.replace(target, value);}return result;}
public static string ReplaceOccupiedParameters(string url, Dictionary<string, string> paths){var result = url;foreach (var entry in paths){var key = entry.Key;var value = entry.Value;var target = "[" + key + "]";result = result.Replace(target, value);}return result;}