Commons.Collections.ExtendedProperties.Combine C# (CSharp) Method

Combine() public method

Combines an existing Hashtable with this Hashtable. * Warning: It will overwrite previous entries without warning. *
public Combine ( ExtendedProperties c ) : void
c ExtendedProperties ExtendedProperties /// ///
return void
        public void Combine(ExtendedProperties c)
        {
            foreach(String key in c.Keys)
            {
                Object o = c[key];
                // if the value is a String, escape it so that if there are delimiters that the value is not converted to a list
                if (o is String)
                {
                    o = ((String) o).Replace(",", @"\,");
                }

                SetProperty(key, o);
            }
        }