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
- ThumbButtonInfo.cs
- FixedTextView.cs
- FixedDocumentSequencePaginator.cs
- Win32.cs
- DifferencingCollection.cs
- TextEndOfSegment.cs
- MetadataPropertyCollection.cs
- UInt32Converter.cs
- NamedPipeAppDomainProtocolHandler.cs
- PageThemeBuildProvider.cs
- TdsParserHelperClasses.cs
- EventProviderClassic.cs
- RenderData.cs
- SafeHandle.cs
- PartitionedDataSource.cs
- DrawingState.cs
- TableLayoutStyleCollection.cs
- ParsedAttributeCollection.cs
- TargetFrameworkAttribute.cs
- ConfigUtil.cs
- XmlILAnnotation.cs
- ServiceModelActivity.cs
- DurableOperationContext.cs
- httpserverutility.cs
- StretchValidation.cs
- PerformanceCounterManager.cs
- DiscoveryExceptionDictionary.cs
- BitmapSource.cs
- Rotation3DKeyFrameCollection.cs
- MaterializeFromAtom.cs
- CompilerWrapper.cs
- PingOptions.cs
- InputScopeNameConverter.cs
- DetailsViewUpdateEventArgs.cs
- CorePropertiesFilter.cs
- WhitespaceRuleLookup.cs
- XsltLibrary.cs
- QilScopedVisitor.cs
- HighlightOverlayGlyph.cs
- QueueProcessor.cs
- ActivitySurrogate.cs
- HttpChannelBindingToken.cs
- HtmlContainerControl.cs
- EntityUtil.cs
- OdbcEnvironmentHandle.cs
- CodeArgumentReferenceExpression.cs
- Events.cs
- StringToken.cs
- TTSEngineProxy.cs
- SingleStorage.cs
- RubberbandSelector.cs
- TextSpan.cs
- IndexOutOfRangeException.cs
- CorePropertiesFilter.cs
- Barrier.cs
- GradientBrush.cs
- RenamedEventArgs.cs
- TransactionContext.cs
- MasterPage.cs
- DllNotFoundException.cs
- PopupRootAutomationPeer.cs
- BehaviorEditorPart.cs
- FormViewInsertEventArgs.cs
- GrammarBuilderPhrase.cs
- ArglessEventHandlerProxy.cs
- ParameterCollection.cs
- ResourcePermissionBaseEntry.cs
- HttpCapabilitiesEvaluator.cs
- ComponentResourceManager.cs
- FontDialog.cs
- ListItemParagraph.cs
- PropertyConverter.cs
- RuleSettingsCollection.cs
- Registry.cs
- DataGridViewButtonCell.cs
- DesignerTransaction.cs
- ServerValidateEventArgs.cs
- SafeViewOfFileHandle.cs
- SessionEndingCancelEventArgs.cs
- TextEffectResolver.cs
- DataColumnMapping.cs
- JoinTreeSlot.cs
- Privilege.cs
- ComponentChangedEvent.cs
- XmlSchemaProviderAttribute.cs
- PointCollection.cs
- CodeActivityMetadata.cs
- FrugalMap.cs
- XsltInput.cs
- MultiSelectRootGridEntry.cs
- Adorner.cs
- ArrayConverter.cs
- ComponentCommands.cs
- FormsAuthenticationEventArgs.cs
- OutputScopeManager.cs
- UInt16Converter.cs
- DataGridItem.cs
- Margins.cs
- DataGridViewCellCancelEventArgs.cs
- ContentAlignmentEditor.cs