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
- AnimationTimeline.cs
- InheritanceUI.cs
- KeyValuePair.cs
- SetIndexBinder.cs
- ActiveDocumentEvent.cs
- SqlResolver.cs
- ITreeGenerator.cs
- WebPartMenu.cs
- LinkButton.cs
- ThreadPool.cs
- FunctionUpdateCommand.cs
- AnnotationObservableCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- StructuralType.cs
- XmlSchema.cs
- CfgParser.cs
- NamedPermissionSet.cs
- CrossAppDomainChannel.cs
- PageVisual.cs
- storepermission.cs
- InvariantComparer.cs
- CompilerWrapper.cs
- RelativeSource.cs
- Assert.cs
- IndentedWriter.cs
- DiscoveryVersionConverter.cs
- RoleManagerSection.cs
- TextServicesLoader.cs
- DesignerAutoFormatStyle.cs
- SizeChangedInfo.cs
- CodeAssignStatement.cs
- MediaEntryAttribute.cs
- SystemFonts.cs
- Types.cs
- MediaContextNotificationWindow.cs
- WebHttpBehavior.cs
- XmlSchemaInfo.cs
- SqlTypeConverter.cs
- HexParser.cs
- MatchAttribute.cs
- VariableBinder.cs
- AnnouncementInnerClient11.cs
- XmlSchemaComplexContentRestriction.cs
- ConnectionManagementElementCollection.cs
- SqlLiftWhereClauses.cs
- XsltContext.cs
- SqlColumnizer.cs
- HttpVersion.cs
- ObjectStateManagerMetadata.cs
- RemoveFromCollection.cs
- Match.cs
- SafeProcessHandle.cs
- RulePatternOps.cs
- DefaultParameterValueAttribute.cs
- XmlSerializerSection.cs
- LogoValidationException.cs
- TextDecorationUnitValidation.cs
- MenuItemCollection.cs
- SQLMoney.cs
- StateMachine.cs
- CorePropertiesFilter.cs
- InputManager.cs
- ContextMenu.cs
- EntityConnectionStringBuilder.cs
- Transform3D.cs
- HtmlInputText.cs
- FragmentQueryKB.cs
- RecognizedWordUnit.cs
- HtmlWindowCollection.cs
- XmlName.cs
- ControlBuilderAttribute.cs
- TrackPoint.cs
- ResourceExpressionEditorSheet.cs
- EnvelopedPkcs7.cs
- pingexception.cs
- InlineUIContainer.cs
- StdRegProviderWrapper.cs
- Set.cs
- AxParameterData.cs
- TypeConverterAttribute.cs
- Signature.cs
- SqlBulkCopyColumnMapping.cs
- InvokeWebService.cs
- SafeLibraryHandle.cs
- CryptoKeySecurity.cs
- RotationValidation.cs
- SystemColors.cs
- OleDbRowUpdatingEvent.cs
- InternalConfigSettingsFactory.cs
- LocalizabilityAttribute.cs
- ZoomComboBox.cs
- ExpressionEditor.cs
- TemplateParser.cs
- MediaSystem.cs
- SpStreamWrapper.cs
- IncrementalReadDecoders.cs
- SecurityRuntime.cs
- AppendHelper.cs
- OneOfElement.cs
- AutomationPatternInfo.cs