Code:
/ DotNET / DotNET / 8.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
- connectionpool.cs
- AcceleratedTokenProviderState.cs
- SqlRecordBuffer.cs
- WorkItem.cs
- Renderer.cs
- UInt32Storage.cs
- ValueSerializer.cs
- AttributeQuery.cs
- TableProvider.cs
- MenuItem.cs
- AmbientLight.cs
- Rect3D.cs
- FlatButtonAppearance.cs
- WindowProviderWrapper.cs
- ColorPalette.cs
- ObjectAnimationBase.cs
- TransformValueSerializer.cs
- WhitespaceRule.cs
- LoginViewDesigner.cs
- WmpBitmapEncoder.cs
- WindowsStartMenu.cs
- DataRecordObjectView.cs
- NamespaceEmitter.cs
- Range.cs
- FlowDocumentReaderAutomationPeer.cs
- VariableBinder.cs
- Speller.cs
- SqlNotificationEventArgs.cs
- BulletChrome.cs
- XmlQueryType.cs
- SharedStream.cs
- ViewLoader.cs
- TableProviderWrapper.cs
- SafeNativeMethods.cs
- HostProtectionException.cs
- Point3DAnimation.cs
- itemelement.cs
- WebAdminConfigurationHelper.cs
- DataTableTypeConverter.cs
- XmlSchemaAttributeGroup.cs
- RowType.cs
- SplineQuaternionKeyFrame.cs
- WebBrowserPermission.cs
- CombinedGeometry.cs
- XPathSelectionIterator.cs
- DirectoryInfo.cs
- LoginName.cs
- ListViewInsertionMark.cs
- PartialCachingAttribute.cs
- CompositeDesignerAccessibleObject.cs
- CatalogZoneDesigner.cs
- TargetControlTypeAttribute.cs
- CalendarButtonAutomationPeer.cs
- WizardDesigner.cs
- MimeBasePart.cs
- EmptyStringExpandableObjectConverter.cs
- CircleHotSpot.cs
- SkipStoryboardToFill.cs
- AnimatedTypeHelpers.cs
- EdmItemCollection.OcAssemblyCache.cs
- SevenBitStream.cs
- _CommandStream.cs
- TextElementEnumerator.cs
- SqlStatistics.cs
- ClickablePoint.cs
- PeerApplication.cs
- Cloud.cs
- UrlAuthorizationModule.cs
- DataViewManager.cs
- IndependentAnimationStorage.cs
- SharedUtils.cs
- RSAProtectedConfigurationProvider.cs
- SQLDecimal.cs
- ShapeTypeface.cs
- AbsoluteQuery.cs
- ReferenceConverter.cs
- WindowProviderWrapper.cs
- MultiView.cs
- XmlNamedNodeMap.cs
- BitmapEffectState.cs
- SchemaNotation.cs
- PageContentCollection.cs
- ConnectionsZoneAutoFormat.cs
- ToolboxItem.cs
- DesigntimeLicenseContextSerializer.cs
- DocumentOrderQuery.cs
- RemotingConfigParser.cs
- CompModHelpers.cs
- MsmqHostedTransportManager.cs
- SelectionChangedEventArgs.cs
- SafeNativeMethods.cs
- SweepDirectionValidation.cs
- PasswordRecoveryDesigner.cs
- BeginStoryboard.cs
- NativeMethods.cs
- QilFactory.cs
- DynamicResourceExtension.cs
- AssemblyNameProxy.cs
- TreeNodeMouseHoverEvent.cs
- SkipStoryboardToFill.cs