Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Sys / System / Configuration / SingleTagSectionHandler.cs / 1 / SingleTagSectionHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Collections; using System.Xml; /** * Single-tag dictionary config factory * * Use for tags of the form:*/ /// /// public class SingleTagSectionHandler : IConfigurationSectionHandler { /** * Create * * Given a partially composed config object (possibly null) * and some input from the config system, return a * further partially composed config object */ ////// public virtual object Create(Object parent, Object context, XmlNode section) { Hashtable result; // start result off as a shallow clone of the parent if (parent == null) result = new Hashtable(); else result = new Hashtable((IDictionary)parent); // verify that there are no children HandlerBase.CheckForChildNodes(section); // iterate through each XML section in order and apply the directives foreach (XmlAttribute attribute in section.Attributes) { // handle name-value pairs result[attribute.Name] = attribute.Value; } return result; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Collections; using System.Xml; /** * Single-tag dictionary config factory * * Use for tags of the form:*/ /// /// public class SingleTagSectionHandler : IConfigurationSectionHandler { /** * Create * * Given a partially composed config object (possibly null) * and some input from the config system, return a * further partially composed config object */ ////// public virtual object Create(Object parent, Object context, XmlNode section) { Hashtable result; // start result off as a shallow clone of the parent if (parent == null) result = new Hashtable(); else result = new Hashtable((IDictionary)parent); // verify that there are no children HandlerBase.CheckForChildNodes(section); // iterate through each XML section in order and apply the directives foreach (XmlAttribute attribute in section.Attributes) { // handle name-value pairs result[attribute.Name] = attribute.Value; } return result; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AppLevelCompilationSectionCache.cs
- StylusButtonEventArgs.cs
- ExpressionUtilities.cs
- XmlStreamStore.cs
- DifferencingCollection.cs
- OdbcParameterCollection.cs
- ColorTransformHelper.cs
- DbConnectionPoolCounters.cs
- XmlSchemas.cs
- NativeMethods.cs
- SystemIcmpV6Statistics.cs
- QueryConverter.cs
- GridViewRowPresenterBase.cs
- ConnectionString.cs
- altserialization.cs
- ControlPropertyNameConverter.cs
- RegistryDataKey.cs
- GlobalizationSection.cs
- EntityDataSourceConfigureObjectContext.cs
- UIPropertyMetadata.cs
- WebBrowserContainer.cs
- StaticSiteMapProvider.cs
- isolationinterop.cs
- ResolveMatchesMessage11.cs
- DictationGrammar.cs
- DBCommandBuilder.cs
- DataGridItemEventArgs.cs
- DataSourceNameHandler.cs
- InputScopeAttribute.cs
- NameValueCollection.cs
- DesignOnlyAttribute.cs
- isolationinterop.cs
- SqlCacheDependencySection.cs
- ProxyWebPartManager.cs
- BamlResourceSerializer.cs
- ProcessModuleCollection.cs
- WebBrowserHelper.cs
- InteropBitmapSource.cs
- CommandField.cs
- ObjectViewFactory.cs
- SystemInfo.cs
- SqlSupersetValidator.cs
- UpdateManifestForBrowserApplication.cs
- EntityObject.cs
- TransactionProxy.cs
- CounterSample.cs
- XNameConverter.cs
- Monitor.cs
- Function.cs
- Brush.cs
- HtmlAnchor.cs
- InvokePattern.cs
- CompilerTypeWithParams.cs
- SwitchLevelAttribute.cs
- FullTextState.cs
- ByteStack.cs
- StreamMarshaler.cs
- AdRotator.cs
- LocatorPartList.cs
- DispatcherOperation.cs
- SocketException.cs
- EntitySqlException.cs
- SafeIUnknown.cs
- SHA512.cs
- OciHandle.cs
- TimelineGroup.cs
- WindowsTreeView.cs
- DataGridViewUtilities.cs
- ReachDocumentReferenceCollectionSerializer.cs
- SystemWebCachingSectionGroup.cs
- PrincipalPermissionMode.cs
- FeatureManager.cs
- RotateTransform3D.cs
- AutomationProperties.cs
- ByteStreamGeometryContext.cs
- PropertyCollection.cs
- ViewStateException.cs
- CompensationExtension.cs
- PropertyPath.cs
- GifBitmapDecoder.cs
- userdatakeys.cs
- NumberFormatInfo.cs
- GroupBox.cs
- WebServiceClientProxyGenerator.cs
- BinaryQueryOperator.cs
- figurelength.cs
- securitycriticaldataClass.cs
- TransformerTypeCollection.cs
- InstanceData.cs
- XmlSignificantWhitespace.cs
- MouseGestureValueSerializer.cs
- QilTernary.cs
- TagPrefixAttribute.cs
- PrintDialog.cs
- Int32Rect.cs
- StringValidator.cs
- TemplateModeChangedEventArgs.cs
- DefaultValueAttribute.cs
- FixedHighlight.cs
- TextEmbeddedObject.cs