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
- XmlSchemaException.cs
- RotateTransform.cs
- DoubleAnimation.cs
- PathNode.cs
- Exceptions.cs
- XmlAttributeAttribute.cs
- _FtpDataStream.cs
- SqlServices.cs
- ArgumentException.cs
- Route.cs
- PlacementWorkspace.cs
- ActivitiesCollection.cs
- EnumUnknown.cs
- MatrixCamera.cs
- ResourceExpressionBuilder.cs
- HttpCachePolicyElement.cs
- SkipStoryboardToFill.cs
- TableLayoutCellPaintEventArgs.cs
- ToolStripContentPanelRenderEventArgs.cs
- SelectionPattern.cs
- Queue.cs
- ToolBarButton.cs
- DirectionalLight.cs
- IChannel.cs
- DefinitionBase.cs
- PropertyCollection.cs
- SafeSecurityHandles.cs
- FieldNameLookup.cs
- ChtmlPhoneCallAdapter.cs
- NullRuntimeConfig.cs
- SqlDataSourceStatusEventArgs.cs
- SqlDataReaderSmi.cs
- SqlTypeConverter.cs
- ScriptDescriptor.cs
- GridViewRowPresenterBase.cs
- WindowsSysHeader.cs
- SHA256Managed.cs
- JournalNavigationScope.cs
- FilterFactory.cs
- SqlGenericUtil.cs
- TargetParameterCountException.cs
- EntitySetBase.cs
- RuntimeEnvironment.cs
- BlockCollection.cs
- Label.cs
- EFTableProvider.cs
- BuildProvider.cs
- WebScriptMetadataFormatter.cs
- Attributes.cs
- DecoderFallback.cs
- IDispatchConstantAttribute.cs
- TypeDescriptor.cs
- GridViewCommandEventArgs.cs
- Point3DAnimationUsingKeyFrames.cs
- ContourSegment.cs
- FieldNameLookup.cs
- OdbcTransaction.cs
- XmlAnyElementAttribute.cs
- ThemeableAttribute.cs
- InvalidPropValue.cs
- WmlImageAdapter.cs
- SecurityElementBase.cs
- SectionVisual.cs
- MappingSource.cs
- DataTable.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SimpleRecyclingCache.cs
- PerformanceCounterPermission.cs
- CellConstantDomain.cs
- CodeSnippetExpression.cs
- ValueUtilsSmi.cs
- MailBnfHelper.cs
- UnsafeNativeMethods.cs
- Configuration.cs
- BackoffTimeoutHelper.cs
- autovalidator.cs
- MorphHelper.cs
- ProcessModule.cs
- ExpressionPrinter.cs
- TransactionContextValidator.cs
- UnsafeNativeMethodsPenimc.cs
- X509Certificate.cs
- RoleServiceManager.cs
- AppendHelper.cs
- NavigatorOutput.cs
- VBIdentifierName.cs
- OdbcUtils.cs
- StreamGeometry.cs
- IgnoreSectionHandler.cs
- odbcmetadatacolumnnames.cs
- WebRequestModulesSection.cs
- SchemaNames.cs
- TextBlock.cs
- StrongNameIdentityPermission.cs
- ApplicationContext.cs
- TracePayload.cs
- EmptyStringExpandableObjectConverter.cs
- OracleConnection.cs
- ScrollData.cs
- NetTcpSection.cs