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
- SqlGenericUtil.cs
- Logging.cs
- MailAddressCollection.cs
- sqlinternaltransaction.cs
- QueryPrefixOp.cs
- XPathSelectionIterator.cs
- ComplusTypeValidator.cs
- MediaElementAutomationPeer.cs
- MetadataSerializer.cs
- BamlBinaryWriter.cs
- XPathMultyIterator.cs
- VectorAnimationBase.cs
- Transform3D.cs
- Char.cs
- Converter.cs
- StructuredTypeInfo.cs
- SafeNativeMemoryHandle.cs
- TemplateComponentConnector.cs
- Utility.cs
- ExceptionRoutedEventArgs.cs
- BaseTreeIterator.cs
- DesignerAttributeInfo.cs
- Speller.cs
- DeferredSelectedIndexReference.cs
- ReaderWriterLock.cs
- ObjectConverter.cs
- SkinBuilder.cs
- DataObject.cs
- RepeatButton.cs
- AuthenticationModuleElement.cs
- InvalidateEvent.cs
- TemplateEditingVerb.cs
- ValidationRule.cs
- IPEndPoint.cs
- ColorConvertedBitmap.cs
- SmiSettersStream.cs
- TreeWalker.cs
- VectorKeyFrameCollection.cs
- SrgsElement.cs
- CompiledIdentityConstraint.cs
- IIS7UserPrincipal.cs
- PageAsyncTaskManager.cs
- SecurityContextSecurityTokenParameters.cs
- _NegoState.cs
- SqlParameter.cs
- ServiceMetadataExtension.cs
- EventLogTraceListener.cs
- QualifierSet.cs
- FormViewCommandEventArgs.cs
- TargetControlTypeAttribute.cs
- RemoteAsymmetricSignatureFormatter.cs
- ModuleBuilderData.cs
- ImportOptions.cs
- ExtensionsSection.cs
- QilLoop.cs
- ProfilePropertyNameValidator.cs
- RegexCode.cs
- XmlReader.cs
- TransformProviderWrapper.cs
- SubqueryTrackingVisitor.cs
- XmlDataCollection.cs
- DecoderNLS.cs
- ProxyWebPartManager.cs
- TextServicesCompartment.cs
- SafeFileMapViewHandle.cs
- RoleProviderPrincipal.cs
- followingquery.cs
- WebPartMovingEventArgs.cs
- PrimitiveSchema.cs
- ThrowHelper.cs
- DataGridViewCellLinkedList.cs
- BindingExpressionBase.cs
- SiteMapSection.cs
- ArgumentException.cs
- StructureChangedEventArgs.cs
- AsyncSerializedWorker.cs
- ToolBarOverflowPanel.cs
- HtmlInputButton.cs
- Operators.cs
- XmlJsonReader.cs
- DateTimeOffsetConverter.cs
- Int32Rect.cs
- TrackingRecord.cs
- DataGridViewTopLeftHeaderCell.cs
- EntityDataSourceViewSchema.cs
- HeaderedContentControl.cs
- TextAdaptor.cs
- AnimationClock.cs
- Helper.cs
- TraceContextEventArgs.cs
- SoapBinding.cs
- JoinCqlBlock.cs
- XmlSchemaElement.cs
- DrawingImage.cs
- NullableBoolConverter.cs
- StateWorkerRequest.cs
- DetailsView.cs
- PriorityQueue.cs
- VersionedStream.cs
- WebPartDeleteVerb.cs