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
- SymbolType.cs
- IntegerFacetDescriptionElement.cs
- SQLDouble.cs
- WindowsSysHeader.cs
- Attributes.cs
- MainMenu.cs
- ApplicationInfo.cs
- LZCodec.cs
- SQLDecimal.cs
- ReflectTypeDescriptionProvider.cs
- UInt16Converter.cs
- EmitterCache.cs
- CallTemplateAction.cs
- PreProcessor.cs
- ControlEvent.cs
- GraphicsPath.cs
- TreeBuilderXamlTranslator.cs
- FamilyMap.cs
- IconBitmapDecoder.cs
- HiddenFieldDesigner.cs
- httpserverutility.cs
- XpsFilter.cs
- SqlReferenceCollection.cs
- GlyphRunDrawing.cs
- EraserBehavior.cs
- ButtonColumn.cs
- EncryptedPackageFilter.cs
- TableItemPatternIdentifiers.cs
- SmtpDateTime.cs
- Query.cs
- DataGridViewUtilities.cs
- DataGridViewDesigner.cs
- WebBrowserHelper.cs
- BooleanStorage.cs
- SqlConnectionPoolProviderInfo.cs
- Point3DAnimationUsingKeyFrames.cs
- ReflectionTypeLoadException.cs
- EntityDataSourceChangedEventArgs.cs
- CommandDevice.cs
- FixedSOMGroup.cs
- CorrelationManager.cs
- SystemWebExtensionsSectionGroup.cs
- IDQuery.cs
- RawStylusActions.cs
- TearOffProxy.cs
- RtfToXamlLexer.cs
- FormatterConverter.cs
- Boolean.cs
- BinHexEncoding.cs
- Serializer.cs
- WebConfigurationManager.cs
- GeneralTransform3DTo2D.cs
- ListDataBindEventArgs.cs
- PropertyEmitterBase.cs
- Knowncolors.cs
- ThreadPool.cs
- SamlDoNotCacheCondition.cs
- Parameter.cs
- ComProxy.cs
- UnSafeCharBuffer.cs
- BigInt.cs
- VisualBrush.cs
- XsdBuilder.cs
- TypeValidationEventArgs.cs
- JoinSymbol.cs
- RequestCacheEntry.cs
- NumberEdit.cs
- AttributeQuery.cs
- HostProtectionPermission.cs
- ResourceProviderFactory.cs
- WpfWebRequestHelper.cs
- TypeHelper.cs
- FragmentQueryKB.cs
- EntityDataSourceMemberPath.cs
- OdbcStatementHandle.cs
- FeatureSupport.cs
- EpmContentDeSerializer.cs
- MediaElementAutomationPeer.cs
- AuthenticationService.cs
- PageAdapter.cs
- TableLayoutSettings.cs
- TableColumn.cs
- SelectionPattern.cs
- SemanticTag.cs
- ProcessThreadDesigner.cs
- AvTraceFormat.cs
- NGCPageContentSerializerAsync.cs
- _AcceptOverlappedAsyncResult.cs
- DesignTimeParseData.cs
- ProfilePropertyMetadata.cs
- FocusWithinProperty.cs
- ContentElementCollection.cs
- EditorPart.cs
- FontWeights.cs
- ValidatorUtils.cs
- Matrix.cs
- _NetworkingPerfCounters.cs
- MeasurementDCInfo.cs
- BitHelper.cs
- WasAdminWrapper.cs