public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            //If unchanged return original collection or else create a new one.
            string state = ((NamespaceCollection)value).ToString();

            NamespaceCollection coll = (NamespaceCollection)_editor.EditValue(context, provider, value);

            string new_state = coll.ToString();

            if (state != new_state)
            {
                coll = new NamespaceCollection();
                coll.SetCollection(new_state);
            }

            return(coll);
        }
 public ContextValueCollection()
 {
     namespaces = new NamespaceCollection();
 }