Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } }[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RemoteWebConfigurationHostStream.cs
- ContravarianceAdapter.cs
- FrameAutomationPeer.cs
- SspiHelper.cs
- ApplicationException.cs
- Helpers.cs
- Control.cs
- ChannelSinkStacks.cs
- RealizationContext.cs
- DataBindingExpressionBuilder.cs
- ScriptResourceHandler.cs
- ToolStripStatusLabel.cs
- ObjectConverter.cs
- SafeRightsManagementQueryHandle.cs
- TransactedBatchingBehavior.cs
- WindowsButton.cs
- TypeDelegator.cs
- Soap12FormatExtensions.cs
- HighlightVisual.cs
- IssuedTokenServiceCredential.cs
- ProtectedConfigurationProviderCollection.cs
- Int64AnimationUsingKeyFrames.cs
- SQLConvert.cs
- XmlSchemaSimpleContent.cs
- WebServiceResponseDesigner.cs
- CssStyleCollection.cs
- CultureInfoConverter.cs
- documentsequencetextcontainer.cs
- SmiMetaDataProperty.cs
- DelayedRegex.cs
- ListViewCancelEventArgs.cs
- SerializationSectionGroup.cs
- DelegateBodyWriter.cs
- CodeVariableDeclarationStatement.cs
- FirstQueryOperator.cs
- SafeEventHandle.cs
- EndpointAddressProcessor.cs
- DBParameter.cs
- IgnoreFileBuildProvider.cs
- BorderGapMaskConverter.cs
- ProxyGenerationError.cs
- SR.cs
- ProjectionPathBuilder.cs
- CompilerResults.cs
- StoragePropertyMapping.cs
- DataView.cs
- C14NUtil.cs
- Rotation3D.cs
- PageWrapper.cs
- DataGridViewCellEventArgs.cs
- CommandConverter.cs
- ImageListStreamer.cs
- StatusBarPanel.cs
- DesignerActionItem.cs
- DataGridViewColumnHeaderCell.cs
- SqlCaseSimplifier.cs
- BitArray.cs
- DisposableCollectionWrapper.cs
- Button.cs
- ObjectQueryState.cs
- ConfigXmlAttribute.cs
- Parser.cs
- XsltArgumentList.cs
- XNodeValidator.cs
- BooleanToVisibilityConverter.cs
- DesignerVerbCollection.cs
- EditorAttribute.cs
- VirtualDirectoryMapping.cs
- FloatMinMaxAggregationOperator.cs
- CultureInfoConverter.cs
- XPathNode.cs
- ValidateNames.cs
- NumericUpDown.cs
- GenericWebPart.cs
- EntityDataSourceContextCreatedEventArgs.cs
- Int32CollectionValueSerializer.cs
- Popup.cs
- MenuTracker.cs
- InternalPolicyElement.cs
- KeyToListMap.cs
- SQLCharsStorage.cs
- ProcessHost.cs
- RenderOptions.cs
- ContainerFilterService.cs
- Privilege.cs
- SplitterPanel.cs
- CancellationState.cs
- JavaScriptSerializer.cs
- AnimationException.cs
- RemotingConfiguration.cs
- OptimizedTemplateContent.cs
- RemotingConfigParser.cs
- DataAccessor.cs
- IMembershipProvider.cs
- DeviceContext.cs
- Size3D.cs
- ButtonBase.cs
- oledbmetadatacollectionnames.cs
- VersionedStream.cs
- NonSerializedAttribute.cs