コード例 #1
0
        public static string GetDescription(NamedValueCollection nameValues)
        {
            if (nameValues == null || nameValues.Count == 0)
            {
                return string.Empty;
            }

            string s = nameValues[0].ToString();
            for (int i = 1; i < nameValues.Count; i++)
            {
                s += "," + nameValues[i].ToString();
            }

            return s;
        }
コード例 #2
0
        public NamedValueCollection Clone()
        {
            NamedValueCollection nameValues = new NamedValueCollection();

            nameValues.Assign(this);

            return nameValues;
        }
コード例 #3
0
        public void Assign(NamedValueCollection nameValues)
        {
            Clear();

            if (nameValues != null)
            {
                int count = nameValues.Count;
                for (int i = 0; i < count; i++)
                {
                    Add(nameValues[i].Clone());
                }
            }
        }