示例#1
0
        private static Dictionary <PlacesParametersType, string> SetParameter(this Dictionary <PlacesParametersType, string> parameters, PlacesParametersType type, string value)
        {
            var str = $"{type.ToString()}={value}";

            if (parameters.ContainsKey(type))
            {
                parameters[type] = str;
            }
            else
            {
                parameters.Add(type, str);
            }
            return(parameters);
        }