Code:
/ FX-1434 / FX-1434 / 1.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
- SuppressIldasmAttribute.cs
- CompilerParameters.cs
- ContainerUIElement3D.cs
- DataGridViewColumnEventArgs.cs
- SecurityPolicyVersion.cs
- FactoryGenerator.cs
- EvidenceBase.cs
- Activator.cs
- WebPartsPersonalization.cs
- WebBrowser.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- OutOfProcStateClientManager.cs
- BorderGapMaskConverter.cs
- TimelineCollection.cs
- WorkflowTraceTransfer.cs
- TextRangeSerialization.cs
- FreezableCollection.cs
- WizardStepBase.cs
- MetadataPropertyCollection.cs
- UnitySerializationHolder.cs
- RemotingSurrogateSelector.cs
- X509SecurityTokenAuthenticator.cs
- RawUIStateInputReport.cs
- PackageRelationshipSelector.cs
- DrawingContextFlattener.cs
- BidPrivateBase.cs
- DNS.cs
- ClientSideQueueItem.cs
- XmlCharCheckingReader.cs
- Canvas.cs
- DocumentGridContextMenu.cs
- CodeTryCatchFinallyStatement.cs
- CqlBlock.cs
- ProcessModule.cs
- ImageKeyConverter.cs
- XPathNodeIterator.cs
- XmlILModule.cs
- RemotingHelper.cs
- CompilerGlobalScopeAttribute.cs
- AsyncResult.cs
- XamlStream.cs
- VisualStyleInformation.cs
- XmlComment.cs
- ColumnHeaderConverter.cs
- EventLogStatus.cs
- OneOfTypeConst.cs
- ReferentialConstraint.cs
- EntityDataSourceWizardForm.cs
- UnmanagedMarshal.cs
- NavigationWindowAutomationPeer.cs
- NotifyIcon.cs
- ErrorRuntimeConfig.cs
- ExecutorLocksHeldException.cs
- ServiceOperation.cs
- HttpHandlerAction.cs
- HebrewCalendar.cs
- WorkflowLayouts.cs
- SerializationEventsCache.cs
- Hashtable.cs
- DataSetMappper.cs
- HttpListenerException.cs
- ProcessHost.cs
- NativeMethodsOther.cs
- RegexGroupCollection.cs
- DynamicDiscoSearcher.cs
- CaseInsensitiveHashCodeProvider.cs
- EmptyElement.cs
- SizeConverter.cs
- DataTemplateKey.cs
- AnnotationDocumentPaginator.cs
- SqlExpressionNullability.cs
- CodeStatement.cs
- XmlSchemaProviderAttribute.cs
- ControlBuilder.cs
- RepeaterDataBoundAdapter.cs
- UnicastIPAddressInformationCollection.cs
- CodeCastExpression.cs
- Visitor.cs
- BaseCollection.cs
- sqlstateclientmanager.cs
- SafeFileHandle.cs
- DataGridViewCellValidatingEventArgs.cs
- ImageListUtils.cs
- DefaultValueConverter.cs
- ConnectionPointConverter.cs
- mediaeventshelper.cs
- WmpBitmapDecoder.cs
- GcSettings.cs
- GregorianCalendar.cs
- ReachSerializableProperties.cs
- OdbcCommand.cs
- DataFormat.cs
- XmlMembersMapping.cs
- FileDialogCustomPlacesCollection.cs
- ModifierKeysValueSerializer.cs
- StrongNameMembershipCondition.cs
- OdbcParameter.cs
- BmpBitmapEncoder.cs
- IxmlLineInfo.cs
- BinaryWriter.cs