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
- MessageBox.cs
- CheckBoxAutomationPeer.cs
- UIElementAutomationPeer.cs
- CounterCreationData.cs
- DataGridCommandEventArgs.cs
- StagingAreaInputItem.cs
- RewritingSimplifier.cs
- Helpers.cs
- TemplateKeyConverter.cs
- RectAnimationClockResource.cs
- XmlSchemaSequence.cs
- ListBindingHelper.cs
- FlagsAttribute.cs
- TypeDescriptionProviderAttribute.cs
- IdentityNotMappedException.cs
- SQLDecimal.cs
- MimeFormatter.cs
- HtmlForm.cs
- Panel.cs
- EventLogPropertySelector.cs
- TraceLevelStore.cs
- XmlQualifiedNameTest.cs
- mediapermission.cs
- SqlAliaser.cs
- DiagnosticEventProvider.cs
- ControlCachePolicy.cs
- DataKey.cs
- CodePageEncoding.cs
- OuterGlowBitmapEffect.cs
- _NtlmClient.cs
- EntityStoreSchemaFilterEntry.cs
- EditBehavior.cs
- WpfXamlType.cs
- WindowsTreeView.cs
- IListConverters.cs
- PersistChildrenAttribute.cs
- FormsAuthenticationConfiguration.cs
- CheckBox.cs
- Nodes.cs
- ByteRangeDownloader.cs
- AssociationSet.cs
- TokenBasedSetEnumerator.cs
- CalendarDay.cs
- PenCursorManager.cs
- AccessibilityApplicationManager.cs
- XmlComment.cs
- TreeViewHitTestInfo.cs
- SafeRightsManagementSessionHandle.cs
- MenuStrip.cs
- TextPenaltyModule.cs
- CodeValidator.cs
- EventDescriptor.cs
- BindingBase.cs
- DebugView.cs
- HtmlLink.cs
- WsdlWriter.cs
- RangeValidator.cs
- NamespaceMapping.cs
- TriggerAction.cs
- JpegBitmapDecoder.cs
- AudioDeviceOut.cs
- BuildProviderAppliesToAttribute.cs
- OAVariantLib.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- HandledEventArgs.cs
- DataView.cs
- TreeNodeCollection.cs
- X509Chain.cs
- ResetableIterator.cs
- NativeMethods.cs
- ExclusiveCanonicalizationTransform.cs
- SimpleApplicationHost.cs
- Style.cs
- ControllableStoryboardAction.cs
- GrammarBuilder.cs
- FakeModelPropertyImpl.cs
- QueryInterceptorAttribute.cs
- DispatcherObject.cs
- ProjectionPruner.cs
- DrawingImage.cs
- SequenceDesigner.xaml.cs
- BinaryParser.cs
- ObjectSpanRewriter.cs
- LinkLabelLinkClickedEvent.cs
- CngKeyCreationParameters.cs
- ArrayHelper.cs
- XmlResolver.cs
- AssemblyCache.cs
- PropertyGridCommands.cs
- CommentEmitter.cs
- HandlerMappingMemo.cs
- BitmapCacheBrush.cs
- DesignTimeParseData.cs
- Debug.cs
- MethodImplAttribute.cs
- SqlDataSourceCommandEventArgs.cs
- FixedSOMPageConstructor.cs
- ISAPIRuntime.cs
- SqlStream.cs
- CompileXomlTask.cs