Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Control.cs
- DefaultMergeHelper.cs
- COM2PictureConverter.cs
- CaseInsensitiveOrdinalStringComparer.cs
- GlyphCache.cs
- ConstructorArgumentAttribute.cs
- DataSourceCache.cs
- SqlServer2KCompatibilityAnnotation.cs
- PropertyToken.cs
- XmlSchemaComplexType.cs
- ToolStripSeparator.cs
- AQNBuilder.cs
- MatrixCamera.cs
- ValueTable.cs
- LeaseManager.cs
- Config.cs
- TableCell.cs
- KerberosTokenFactoryCredential.cs
- RectAnimation.cs
- EventWaitHandleSecurity.cs
- _AuthenticationState.cs
- ProjectionPath.cs
- WebBrowserBase.cs
- SynchronizedCollection.cs
- UiaCoreTypesApi.cs
- XmlDocumentSerializer.cs
- HierarchicalDataBoundControlAdapter.cs
- CompileLiteralTextParser.cs
- CodeMethodReturnStatement.cs
- FontDifferentiator.cs
- TitleStyle.cs
- BinaryFormatter.cs
- NoneExcludedImageIndexConverter.cs
- IfJoinedCondition.cs
- Int32Collection.cs
- WrapperEqualityComparer.cs
- ThreadStartException.cs
- QuotedPrintableStream.cs
- fixedPageContentExtractor.cs
- WorkflowQueue.cs
- ContentType.cs
- XmlElement.cs
- DataControlReferenceCollection.cs
- SafeCryptoKeyHandle.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- XmlSerializerSection.cs
- DelegateHelpers.Generated.cs
- oledbmetadatacollectionnames.cs
- AutoResetEvent.cs
- NamedObject.cs
- FrameworkElement.cs
- Parser.cs
- ColorTransform.cs
- StylusPointProperties.cs
- StringPropertyBuilder.cs
- GridViewRowEventArgs.cs
- ToolboxItemFilterAttribute.cs
- SafeEventHandle.cs
- LocalizeDesigner.cs
- DataGridLinkButton.cs
- Timer.cs
- LinqDataView.cs
- RegexMatchCollection.cs
- TrackPointCollection.cs
- ContentPlaceHolder.cs
- ValueQuery.cs
- SelectionItemPatternIdentifiers.cs
- TextBoxView.cs
- AspNetSynchronizationContext.cs
- HuffmanTree.cs
- ActivationServices.cs
- RNGCryptoServiceProvider.cs
- TypeSystemProvider.cs
- SettingsProperty.cs
- FixUp.cs
- DeobfuscatingStream.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- COM2PropertyBuilderUITypeEditor.cs
- ListViewInsertEventArgs.cs
- BehaviorEditorPart.cs
- BaseInfoTable.cs
- OrderablePartitioner.cs
- DeclaredTypeElement.cs
- RecognizerInfo.cs
- IdleTimeoutMonitor.cs
- UnmanagedMemoryStream.cs
- LayoutTable.cs
- SqlStream.cs
- PrimitiveXmlSerializers.cs
- ChooseAction.cs
- XmlCDATASection.cs
- HyperLink.cs
- WinFormsSecurity.cs
- StylusButtonCollection.cs
- OleDbStruct.cs
- NativeMethods.cs
- VisualStateChangedEventArgs.cs
- OleDbException.cs
- UserControlAutomationPeer.cs
- BoundField.cs