/// <summary> /// Initializes this instance. /// </summary> internal static void Initialize() { if (_providers == null) { lock (typeof(ControlProperties)) { if (_providers == null) { ControlPropertiesSection section = (ControlPropertiesSection) ConfigurationManager.GetSection("mediachase.ControlPropertiesProviders/storageProvider"); if (section == null) { _providers = new ControlPropertiesProviderCollection(); _enabled = false; } else { _enabled = section.Enabled; section.ValidateDefaultProvider(); _providers = section.ControlPropertiesCollecition; _defaultProvider = _providers[section.DefaultProvider]; _providers.SetReadOnly(); } } } } }