Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / KeyValueInternalCollection.cs / 1305376 / KeyValueInternalCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; // class AppSettingsSection class KeyValueInternalCollection : NameValueCollection { private AppSettingsSection _root = null; public KeyValueInternalCollection(AppSettingsSection root) { _root = root; foreach (KeyValueConfigurationElement element in _root.Settings) { base.Add(element.Key, element.Value); } } public override void Add(String key, String value) { _root.Settings.Add(new KeyValueConfigurationElement(key, value)); base.Add(key, value); } public override void Clear() { _root.Settings.Clear(); base.Clear(); } public override void Remove(string key) { _root.Settings.Remove(key); base.Remove(key); } #if DONT_COMPILE // Unfortunately this is not virtual and we hand out the base collection public new string this[string key] { get { return base[key]; } set { _root.Settings[key] = new KeyValueConfigurationElement(key, value); base[key] = value; } } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OrderToken.cs
- FileReservationCollection.cs
- CompensateDesigner.cs
- GeneralTransformGroup.cs
- ObjectListDesigner.cs
- UnsafePeerToPeerMethods.cs
- Sentence.cs
- UndoEngine.cs
- ToolStripGrip.cs
- TypeUnloadedException.cs
- EventListenerClientSide.cs
- HttpDictionary.cs
- DropSource.cs
- TableCell.cs
- DataSysAttribute.cs
- InvalidFilterCriteriaException.cs
- RepeaterCommandEventArgs.cs
- QuotedPairReader.cs
- SpecialNameAttribute.cs
- ObjectContext.cs
- newitemfactory.cs
- SqlIdentifier.cs
- DefaultExpression.cs
- DesignerActionPanel.cs
- WebBrowserBase.cs
- DesignerOptions.cs
- ManipulationVelocities.cs
- WasHostedComPlusFactory.cs
- _LocalDataStore.cs
- Helpers.cs
- HashAlgorithm.cs
- XPathDocumentIterator.cs
- ColorDialog.cs
- DataServiceQueryException.cs
- DBConcurrencyException.cs
- IdnMapping.cs
- TextCompositionEventArgs.cs
- BindingManagerDataErrorEventArgs.cs
- HostSecurityManager.cs
- SymDocumentType.cs
- hwndwrapper.cs
- ProxyWebPartManager.cs
- SqlTypesSchemaImporter.cs
- SerializationStore.cs
- AuthenticatingEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- FamilyTypeface.cs
- WebPartDescriptionCollection.cs
- WebWorkflowRole.cs
- DictionaryTraceRecord.cs
- InternalPolicyElement.cs
- MemoryMappedView.cs
- shaper.cs
- RawAppCommandInputReport.cs
- AsyncOperation.cs
- CodeTypeDeclarationCollection.cs
- ScrollPattern.cs
- StringPropertyBuilder.cs
- ListBox.cs
- DynamicRouteExpression.cs
- KeyTime.cs
- ImmutableObjectAttribute.cs
- HtmlInputHidden.cs
- IntSumAggregationOperator.cs
- Style.cs
- HttpCapabilitiesSectionHandler.cs
- DropDownButton.cs
- DbgUtil.cs
- EditorPartCollection.cs
- MarkupCompilePass1.cs
- FtpWebResponse.cs
- ViewValidator.cs
- SynchronizationValidator.cs
- ArraySubsetEnumerator.cs
- URLEditor.cs
- GridLength.cs
- TabItem.cs
- SrgsToken.cs
- ContainsSearchOperator.cs
- ParallelQuery.cs
- FolderBrowserDialog.cs
- HttpHostedTransportConfiguration.cs
- ListViewItemCollectionEditor.cs
- DesignerMetadata.cs
- LocalIdCollection.cs
- SecureEnvironment.cs
- JsonStringDataContract.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Object.cs
- BaseTemplateParser.cs
- HtmlToClrEventProxy.cs
- DecodeHelper.cs
- LayoutSettings.cs
- Table.cs
- URLIdentityPermission.cs
- MonitoringDescriptionAttribute.cs
- InvalidProgramException.cs
- GridViewHeaderRowPresenter.cs
- EmulateRecognizeCompletedEventArgs.cs
- MemoryStream.cs