static WikiManager() { //Get the feature's configuration info WikiProviderConfiguration qc = (WikiProviderConfiguration)ConfigurationManager.GetSection("wikiManager"); if (qc == null || qc.DefaultProvider == null || qc.Providers == null || qc.Providers.Count < 1) throw new ProviderException("You must specify a valid default provider for wikiManager."); //Instantiate the providers providerCollection = new WikiProviderCollection(); ProvidersHelper.InstantiateProviders(qc.Providers, providerCollection, typeof(WikiProvider)); providerCollection.SetReadOnly(); defaultProvider = providerCollection[qc.DefaultProvider]; if (defaultProvider == null) { throw new ConfigurationErrorsException( "You must specify a default provider for the wikiManager.", qc.ElementInformation.Properties["defaultProvider"].Source, qc.ElementInformation.Properties["defaultProvider"].LineNumber); } }
public void CopyTo(WikiProvider[] array, int index) { base.CopyTo(array, index); }