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
- TranslateTransform3D.cs
- GenerateHelper.cs
- Sequence.cs
- SqlGatherConsumedAliases.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- GPPOINT.cs
- DataGridViewCellValueEventArgs.cs
- WindowsTooltip.cs
- ProcessRequestArgs.cs
- CombinedTcpChannel.cs
- DynamicDiscoveryDocument.cs
- XsltCompileContext.cs
- CorrelationService.cs
- TreeNodeMouseHoverEvent.cs
- DynamicResourceExtension.cs
- ObjectStateManagerMetadata.cs
- AdRotatorDesigner.cs
- LinkDescriptor.cs
- Encoding.cs
- XmlSchemaObject.cs
- DeleteIndexBinder.cs
- PersonalizationStateInfo.cs
- TrustLevel.cs
- SqlClientMetaDataCollectionNames.cs
- DynamicRenderer.cs
- EmptyStringExpandableObjectConverter.cs
- PackageDigitalSignatureManager.cs
- URLIdentityPermission.cs
- Compilation.cs
- StylusPoint.cs
- EventRoute.cs
- SR.cs
- OleDbCommandBuilder.cs
- ContainerUIElement3D.cs
- WinFormsSecurity.cs
- SiteMapProvider.cs
- MouseGestureConverter.cs
- FixedSOMImage.cs
- PlacementWorkspace.cs
- ThicknessAnimation.cs
- ContentPropertyAttribute.cs
- ModelVisual3D.cs
- DynamicAttribute.cs
- SHA512Managed.cs
- Button.cs
- ParamArrayAttribute.cs
- InputLanguageSource.cs
- SchemaAttDef.cs
- HtmlImageAdapter.cs
- GroupBoxRenderer.cs
- CreateUserWizardStep.cs
- CrossSiteScriptingValidation.cs
- WebBrowserProgressChangedEventHandler.cs
- XsltInput.cs
- StringResourceManager.cs
- PickBranch.cs
- Zone.cs
- MD5.cs
- WebHttpDispatchOperationSelectorData.cs
- MediaPlayer.cs
- StatusCommandUI.cs
- FreezableOperations.cs
- DataGridViewCellParsingEventArgs.cs
- SmtpException.cs
- Vector3D.cs
- SchemaTypeEmitter.cs
- AttachedAnnotation.cs
- CmsInterop.cs
- Visual3D.cs
- DynamicPropertyHolder.cs
- GridViewCancelEditEventArgs.cs
- SectionVisual.cs
- SafeIUnknown.cs
- TableRow.cs
- SqlTriggerContext.cs
- Model3DCollection.cs
- FixedSOMLineCollection.cs
- DisableDpiAwarenessAttribute.cs
- NavigateEvent.cs
- AnnouncementService.cs
- CompilerScopeManager.cs
- WorkflowCompensationBehavior.cs
- ReadOnlyDictionary.cs
- FixedStringLookup.cs
- DtcInterfaces.cs
- DoubleUtil.cs
- LocalFileSettingsProvider.cs
- Misc.cs
- DrawingAttributes.cs
- UserControl.cs
- ApplicationCommands.cs
- SqlEnums.cs
- ProcessModule.cs
- StyleSheetRefUrlEditor.cs
- SourceInterpreter.cs
- WebPartConnectionsDisconnectVerb.cs
- DefaultHttpHandler.cs
- TextSearch.cs
- XmlSchemaSimpleTypeUnion.cs
- InstallerTypeAttribute.cs