Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ReliableInputConnection.cs
- CqlErrorHelper.cs
- FrameworkElementFactory.cs
- QilLoop.cs
- KeyConstraint.cs
- CategoryNameCollection.cs
- SemaphoreFullException.cs
- FontWeight.cs
- IntAverageAggregationOperator.cs
- ButtonStandardAdapter.cs
- ApplicationHost.cs
- ResourceIDHelper.cs
- UseAttributeSetsAction.cs
- XmlCountingReader.cs
- NativeRecognizer.cs
- ParserExtension.cs
- CmsUtils.cs
- ActionItem.cs
- DependencyPropertyDescriptor.cs
- DesignerVerb.cs
- EncryptedPackage.cs
- EditorOptionAttribute.cs
- ValueTypeFixupInfo.cs
- DBDataPermission.cs
- DataRowIndexBuffer.cs
- XmlDigitalSignatureProcessor.cs
- InvalidDataContractException.cs
- AssertHelper.cs
- BasicKeyConstraint.cs
- EventLogRecord.cs
- AssertFilter.cs
- FontCollection.cs
- AnimationException.cs
- PrimitiveSchema.cs
- TextEditorContextMenu.cs
- ContentTextAutomationPeer.cs
- basevalidator.cs
- TreeNodeCollection.cs
- AccessViolationException.cs
- PathSegmentCollection.cs
- SqlInternalConnection.cs
- WasEndpointConfigContainer.cs
- ComponentSerializationService.cs
- ConfigXmlSignificantWhitespace.cs
- DeferredReference.cs
- DataGridCell.cs
- AsymmetricSignatureFormatter.cs
- MetadataItemEmitter.cs
- PathSegment.cs
- PatternMatcher.cs
- JapaneseLunisolarCalendar.cs
- PersonalizableAttribute.cs
- OleDbDataReader.cs
- WmpBitmapEncoder.cs
- KnownColorTable.cs
- Int32CAMarshaler.cs
- EventProviderWriter.cs
- RegexTree.cs
- XmlWriter.cs
- WebPartDescriptionCollection.cs
- WorkflowInstanceProxy.cs
- AutomationPatternInfo.cs
- HttpModuleAction.cs
- DataBoundControl.cs
- MediaElement.cs
- AuthenticatedStream.cs
- COM2IDispatchConverter.cs
- ExceptQueryOperator.cs
- AuthenticatingEventArgs.cs
- EditorPart.cs
- FloaterParagraph.cs
- VScrollBar.cs
- DataServiceProcessingPipelineEventArgs.cs
- PromptBuilder.cs
- WebPartExportVerb.cs
- TemplateNodeContextMenu.cs
- PackageStore.cs
- TextModifierScope.cs
- KeyValuePair.cs
- TreeSet.cs
- CategoryAttribute.cs
- URL.cs
- CommandLibraryHelper.cs
- JapaneseCalendar.cs
- recordstate.cs
- TableParaClient.cs
- WebPartsSection.cs
- Int64Animation.cs
- EmptyElement.cs
- Label.cs
- TreeNodeBinding.cs
- RemotingException.cs
- BatchParser.cs
- XD.cs
- ErrorRuntimeConfig.cs
- MetadataWorkspace.cs
- MergeExecutor.cs
- WebServiceFault.cs
- WasHttpHandlersInstallComponent.cs
- PropertyToken.cs