public static PropertyPersisterSettings GetConfig()
		{
			PropertyPersisterSettings settings = (PropertyPersisterSettings)ConfigurationBroker.GetSection("persisterGroupSettings");

			if (settings == null)
				settings = new PropertyPersisterSettings();

			return settings;
		}
        public static PropertyPersisterSettings GetConfig()
        {
            PropertyPersisterSettings settings = (PropertyPersisterSettings)ConfigurationBroker.GetSection("persisterGroupSettings");

            if (settings == null)
            {
                settings = new PropertyPersisterSettings();
            }

            return(settings);
        }
        private static Dictionary <string, IPropertyPersister <T> > GetPersister()
        {
            Dictionary <string, IPropertyPersister <T> > result = new Dictionary <string, IPropertyPersister <T> >();

            TypeConfigurationCollection persisterTypes = PropertyPersisterSettings.GetConfig().Persisters;

            //PropertyEditorSettings.GetConfig().Editors;

            foreach (TypeConfigurationElement typeElem in persisterTypes)
            {
                IPropertyPersister <T> editor = (IPropertyPersister <T>)typeElem.CreateInstance();

                if (result.ContainsKey(typeElem.Name) == false)
                {
                    result.Add(typeElem.Name, editor);
                }
            }

            return(result);
        }