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
- RepeatInfo.cs
- RemoteEndpointMessageProperty.cs
- CustomAttribute.cs
- AuthenticatedStream.cs
- XmlElementElementCollection.cs
- _HeaderInfo.cs
- CssClassPropertyAttribute.cs
- LiteralTextContainerControlBuilder.cs
- Padding.cs
- LocationEnvironment.cs
- RectIndependentAnimationStorage.cs
- LineBreak.cs
- HiddenFieldPageStatePersister.cs
- ClientRuntimeConfig.cs
- Point4DConverter.cs
- RequestSecurityTokenSerializer.cs
- HierarchicalDataSourceConverter.cs
- ScrollBar.cs
- PathParser.cs
- PagesChangedEventArgs.cs
- CompilerInfo.cs
- SafeCryptoHandles.cs
- Invariant.cs
- FileSecurity.cs
- LineVisual.cs
- SiteMapNodeItemEventArgs.cs
- Tracking.cs
- DataTable.cs
- Translator.cs
- ClientScriptItem.cs
- ReferencedCollectionType.cs
- XmlNotation.cs
- ControlParameter.cs
- PeerNeighborManager.cs
- BitmapImage.cs
- COMException.cs
- ProxyGenerator.cs
- LinqDataSourceSelectEventArgs.cs
- KeyBinding.cs
- LocalizableAttribute.cs
- _NTAuthentication.cs
- ActivityWithResultValueSerializer.cs
- AnimatedTypeHelpers.cs
- InheritanceRules.cs
- IssuedTokenClientElement.cs
- AnonymousIdentificationModule.cs
- ThousandthOfEmRealPoints.cs
- Emitter.cs
- FontUnitConverter.cs
- UpDownBase.cs
- DataListItem.cs
- SQLInt32.cs
- RadioButton.cs
- GroupPartitionExpr.cs
- ExtendLockCommand.cs
- SafeArrayRankMismatchException.cs
- InvokePatternIdentifiers.cs
- _Win32.cs
- InheritanceUI.cs
- Trigger.cs
- Model3D.cs
- ApplicationSecurityManager.cs
- CAGDesigner.cs
- FontClient.cs
- ProviderConnectionPoint.cs
- HtmlTitle.cs
- PersistenceMetadataNamespace.cs
- XmlDocumentFragment.cs
- EmptyImpersonationContext.cs
- SmtpTransport.cs
- WsiProfilesElementCollection.cs
- MSG.cs
- ProcessThreadDesigner.cs
- NestPullup.cs
- RootBuilder.cs
- ValueConversionAttribute.cs
- InnerItemCollectionView.cs
- DbDeleteCommandTree.cs
- HtmlControl.cs
- XmlnsDictionary.cs
- Tablet.cs
- TemplatedAdorner.cs
- DataControlImageButton.cs
- SystemInfo.cs
- NavigationHelper.cs
- RegexCaptureCollection.cs
- XPathExpr.cs
- SymbolTable.cs
- ToolStripMenuItem.cs
- BitmapMetadata.cs
- NameService.cs
- RadioButtonPopupAdapter.cs
- Int16AnimationBase.cs
- RowToFieldTransformer.cs
- ControlIdConverter.cs
- httpstaticobjectscollection.cs
- XmlQueryContext.cs
- RuleInfoComparer.cs
- StorageBasedPackageProperties.cs
- CodeIterationStatement.cs