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
- BasicHttpBindingCollectionElement.cs
- ListControl.cs
- XmlException.cs
- OutputScopeManager.cs
- EntityTransaction.cs
- XmlTextEncoder.cs
- MultipartIdentifier.cs
- COM2Properties.cs
- MexNamedPipeBindingCollectionElement.cs
- EditBehavior.cs
- PartBasedPackageProperties.cs
- URI.cs
- SQLMoneyStorage.cs
- ReadOnlyDictionary.cs
- DataGridItemAttachedStorage.cs
- DisposableCollectionWrapper.cs
- ErrorTableItemStyle.cs
- SqlFunctionAttribute.cs
- WebOperationContext.cs
- TriggerCollection.cs
- SecurityResources.cs
- AnnotationHelper.cs
- ProfileBuildProvider.cs
- WebZone.cs
- SettingsProperty.cs
- NativeActivityContext.cs
- AutomationPatternInfo.cs
- ControlPaint.cs
- PluralizationService.cs
- WindowsRichEditRange.cs
- ListChunk.cs
- ComboBoxDesigner.cs
- oledbmetadatacolumnnames.cs
- CacheMode.cs
- ImageList.cs
- CrossContextChannel.cs
- DynamicObjectAccessor.cs
- VectorAnimationBase.cs
- RequestNavigateEventArgs.cs
- OdbcCommandBuilder.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- DataControlPagerLinkButton.cs
- ObjectDataSourceMethodEventArgs.cs
- TypeReference.cs
- LinqDataView.cs
- DataRelation.cs
- XamlTypeMapperSchemaContext.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CreatingCookieEventArgs.cs
- FileSystemEventArgs.cs
- GenericPrincipal.cs
- ClientRoleProvider.cs
- HwndAppCommandInputProvider.cs
- UserValidatedEventArgs.cs
- Journaling.cs
- KeyTime.cs
- _UriSyntax.cs
- FieldTemplateFactory.cs
- NativeStructs.cs
- EndPoint.cs
- ScrollPatternIdentifiers.cs
- DrawingAttributeSerializer.cs
- ProxyOperationRuntime.cs
- Pair.cs
- Error.cs
- BuildProvidersCompiler.cs
- RowToFieldTransformer.cs
- DropShadowEffect.cs
- SerializationHelper.cs
- ElapsedEventArgs.cs
- DataRelationPropertyDescriptor.cs
- DependencyProperty.cs
- EventLogger.cs
- ClientProtocol.cs
- CustomAttribute.cs
- SemaphoreFullException.cs
- Handle.cs
- TreeViewHitTestInfo.cs
- OleDbConnectionInternal.cs
- MemoryStream.cs
- EndpointInfoCollection.cs
- WorkflowDurableInstance.cs
- TextViewSelectionProcessor.cs
- SelectionProviderWrapper.cs
- StickyNote.cs
- ExtensibleClassFactory.cs
- QueryResponse.cs
- BrowserTree.cs
- util.cs
- FormClosedEvent.cs
- ListControlConvertEventArgs.cs
- SchemaHelper.cs
- HttpHeaderCollection.cs
- DomNameTable.cs
- DetailsViewDeletedEventArgs.cs
- PageRequestManager.cs
- OutputWindow.cs
- SamlConditions.cs
- ConsumerConnectionPoint.cs
- MessageBodyMemberAttribute.cs