Cgw.SmcError.ErrorInfo.FindParameters C# (CSharp) Method

FindParameters() public method

根据参数名,查找字典中所有的指定参数值
public FindParameters ( string param ) : string
param string 参数名
return string
        public string FindParameters(string param)
        {
            string result = string.Empty;

            if (string.IsNullOrEmpty(param))
            {
                return string.Empty;
            }

            for (int i = 0; i < this.ParametersDictionary.Count; i++)
            {
                for (int j = 0; j < this.ParametersDictionary[i].Count; j++)
                {
                    ValueDictionary dic = this.ParametersDictionary[i][j];
                    if (param.Equals(dic.Name))
                    {
                        result += dic.Value + ",";
                    }
                }
            }

            if (!string.IsNullOrEmpty(result))
            {
                string temp = result.Trim(',');
                result = temp;
            }

            return result;
        }