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
- SafeTimerHandle.cs
- QueryActivatableWorkflowsCommand.cs
- HyperlinkAutomationPeer.cs
- WebPartVerbCollection.cs
- Constants.cs
- COM2Properties.cs
- XmlSerializationGeneratedCode.cs
- PasswordTextNavigator.cs
- PointF.cs
- FlowDecision.cs
- WebPartManager.cs
- _BasicClient.cs
- FontCollection.cs
- linebase.cs
- TableCell.cs
- ReferencedType.cs
- ListControlStringCollectionEditor.cs
- TreeNode.cs
- MailAddressCollection.cs
- ConfigsHelper.cs
- SHA384.cs
- FilterableAttribute.cs
- Font.cs
- Win32Exception.cs
- DynamicResourceExtension.cs
- DeclaredTypeValidatorAttribute.cs
- DataRelationPropertyDescriptor.cs
- JoinSymbol.cs
- IsolationInterop.cs
- CodeDOMUtility.cs
- DataControlCommands.cs
- PropertyGeneratedEventArgs.cs
- Span.cs
- RichTextBox.cs
- WindowsAuthenticationModule.cs
- Context.cs
- LoadRetryAsyncResult.cs
- DateTimeFormat.cs
- EntityParameterCollection.cs
- Size3DConverter.cs
- Win32KeyboardDevice.cs
- PersonalizationProvider.cs
- WorkflowApplication.cs
- SafeNativeMethods.cs
- SplineQuaternionKeyFrame.cs
- ScriptBehaviorDescriptor.cs
- ConvertEvent.cs
- TextServicesDisplayAttribute.cs
- RenderOptions.cs
- FullTextLine.cs
- PartManifestEntry.cs
- Misc.cs
- ComplexTypeEmitter.cs
- TextDataBindingHandler.cs
- DataExpression.cs
- Reference.cs
- SoapElementAttribute.cs
- SettingsBase.cs
- MiniCustomAttributeInfo.cs
- UnicodeEncoding.cs
- ParameterModifier.cs
- CalloutQueueItem.cs
- AnnotationHelper.cs
- SecurityUtils.cs
- CurrentTimeZone.cs
- WebPartHelpVerb.cs
- SamlConstants.cs
- Interlocked.cs
- FrameworkObject.cs
- Vertex.cs
- ItemCheckEvent.cs
- TextContainerHelper.cs
- TracedNativeMethods.cs
- WindowsIPAddress.cs
- Socket.cs
- BamlLocalizabilityResolver.cs
- Site.cs
- AnimationTimeline.cs
- SmtpTransport.cs
- XmlSerializerNamespaces.cs
- Int64Converter.cs
- XmlSchemaComplexType.cs
- HtmlInputPassword.cs
- EventProxy.cs
- EdmProperty.cs
- TableDetailsCollection.cs
- TPLETWProvider.cs
- XslCompiledTransform.cs
- ReferenceConverter.cs
- HostSecurityManager.cs
- LinkLabelLinkClickedEvent.cs
- SHA1Managed.cs
- XmlUnspecifiedAttribute.cs
- DataProtectionSecurityStateEncoder.cs
- SplitContainerDesigner.cs
- NotifyIcon.cs
- ActivityWithResultWrapper.cs
- AddIn.cs
- EncodingDataItem.cs
- EmptyElement.cs