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
- ScriptResourceAttribute.cs
- QueryOperationResponseOfT.cs
- LicenseContext.cs
- Image.cs
- X509RecipientCertificateClientElement.cs
- DateTimeConverter2.cs
- ReplacementText.cs
- NetSectionGroup.cs
- SqlDesignerDataSourceView.cs
- HttpSysSettings.cs
- DesignerToolboxInfo.cs
- Simplifier.cs
- BinaryNegotiation.cs
- StringResourceManager.cs
- _AuthenticationState.cs
- _ServiceNameStore.cs
- XmlSubtreeReader.cs
- PathSegment.cs
- SqlTopReducer.cs
- UrlPath.cs
- DynamicILGenerator.cs
- TableDetailsCollection.cs
- SqlDataSourceCustomCommandEditor.cs
- ProgressBar.cs
- RuleRefElement.cs
- ServiceEndpointCollection.cs
- ConnectionAcceptor.cs
- ProfileSection.cs
- CommandLineParser.cs
- ParserStreamGeometryContext.cs
- DesignSurfaceServiceContainer.cs
- DrawListViewItemEventArgs.cs
- ApplicationId.cs
- ZoneLinkButton.cs
- MessageBox.cs
- LexicalChunk.cs
- HtmlElementEventArgs.cs
- AnnotationObservableCollection.cs
- recordstate.cs
- TrustLevel.cs
- SqlCommandSet.cs
- DataExpression.cs
- EventWaitHandleSecurity.cs
- ColumnMapProcessor.cs
- Calendar.cs
- TableLayoutStyleCollection.cs
- FormsAuthenticationTicket.cs
- HashMembershipCondition.cs
- StyleSelector.cs
- EntityDesignerDataSourceView.cs
- ContainerSelectorGlyph.cs
- HttpStaticObjectsCollectionBase.cs
- DataObjectAttribute.cs
- ColumnWidthChangedEvent.cs
- ProtocolsConfiguration.cs
- JsonFormatReaderGenerator.cs
- Control.cs
- ZipIOExtraField.cs
- SafeCryptoHandles.cs
- WebPartTransformerCollection.cs
- HtmlContainerControl.cs
- Pen.cs
- ItemContainerGenerator.cs
- WaitHandleCannotBeOpenedException.cs
- OutputCacheModule.cs
- HttpCacheVaryByContentEncodings.cs
- FrameworkRichTextComposition.cs
- EmptyElement.cs
- Clock.cs
- JavaScriptObjectDeserializer.cs
- TextLineResult.cs
- RightsManagementEncryptedStream.cs
- SoapServerProtocol.cs
- ListViewItem.cs
- ImageButton.cs
- TextRunTypographyProperties.cs
- DeploymentSectionCache.cs
- Brush.cs
- StateRuntime.cs
- Itemizer.cs
- DBSchemaRow.cs
- DateTimeOffsetConverter.cs
- SudsCommon.cs
- SQLChars.cs
- ApplicationFileParser.cs
- ConnectionsZone.cs
- FrameworkElementFactory.cs
- ThreadExceptionEvent.cs
- ByteStreamBufferedMessageData.cs
- DataBoundControlHelper.cs
- ControlBindingsConverter.cs
- BlobPersonalizationState.cs
- PtsContext.cs
- EntityContainerRelationshipSetEnd.cs
- EnumerableRowCollectionExtensions.cs
- RecognizedAudio.cs
- HScrollProperties.cs
- SendMailErrorEventArgs.cs
- Size3DConverter.cs
- SelectionPatternIdentifiers.cs