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
- DataGridViewCellValidatingEventArgs.cs
- MailBnfHelper.cs
- GeometryDrawing.cs
- RightsManagementEncryptionTransform.cs
- WeakReferenceList.cs
- WebBrowserHelper.cs
- Drawing.cs
- InvalidComObjectException.cs
- XhtmlBasicLiteralTextAdapter.cs
- TemplateNameScope.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- Utility.cs
- Size.cs
- StylusLogic.cs
- SQLCharsStorage.cs
- ColumnMapVisitor.cs
- InvalidFilterCriteriaException.cs
- SectionInput.cs
- ScrollBar.cs
- MappingModelBuildProvider.cs
- SaveFileDialog.cs
- DrawingBrush.cs
- TimeZoneNotFoundException.cs
- HierarchicalDataBoundControl.cs
- SqlFacetAttribute.cs
- X509WindowsSecurityToken.cs
- PathGradientBrush.cs
- ActivityDesignerLayoutSerializers.cs
- Stylus.cs
- OletxCommittableTransaction.cs
- DiscoveryDocumentLinksPattern.cs
- MobileControlsSection.cs
- SspiSafeHandles.cs
- OleDbConnectionInternal.cs
- Size3DConverter.cs
- NavigationService.cs
- StateItem.cs
- ObjectQuery_EntitySqlExtensions.cs
- EnumConverter.cs
- HtmlTableRowCollection.cs
- FilteredDataSetHelper.cs
- AbsoluteQuery.cs
- CultureInfoConverter.cs
- SharedPersonalizationStateInfo.cs
- WizardStepCollectionEditor.cs
- RegionInfo.cs
- DocComment.cs
- MasterPage.cs
- HandlerFactoryCache.cs
- SrgsElementFactory.cs
- ContextMenu.cs
- RelationshipConverter.cs
- JsonEnumDataContract.cs
- JoinCqlBlock.cs
- InkCanvasFeedbackAdorner.cs
- _SingleItemRequestCache.cs
- FontWeights.cs
- DynamicValidator.cs
- PinnedBufferMemoryStream.cs
- TypeConverterMarkupExtension.cs
- TextParagraphProperties.cs
- ImageListStreamer.cs
- FixedSOMPageElement.cs
- VisualStyleTypesAndProperties.cs
- LineServices.cs
- SerializationFieldInfo.cs
- ServiceBusyException.cs
- VirtualizedItemProviderWrapper.cs
- MobileControlsSectionHandler.cs
- TextCompositionEventArgs.cs
- CursorEditor.cs
- PathGeometry.cs
- EntityCommandCompilationException.cs
- BmpBitmapDecoder.cs
- PartBasedPackageProperties.cs
- Convert.cs
- PropertyInformationCollection.cs
- ReadOnlyDictionary.cs
- TextEffectResolver.cs
- NotifyInputEventArgs.cs
- ReturnType.cs
- Cell.cs
- ComponentGlyph.cs
- InputLanguageEventArgs.cs
- WebPartCancelEventArgs.cs
- DiagnosticStrings.cs
- ExclusiveTcpListener.cs
- OleDbReferenceCollection.cs
- Utility.cs
- PathTooLongException.cs
- MessagingActivityHelper.cs
- TrustManager.cs
- XmlStringTable.cs
- SpeakCompletedEventArgs.cs
- TransformerConfigurationWizardBase.cs
- ConfigsHelper.cs
- AddInIpcChannel.cs
- TextSpan.cs
- AttributeEmitter.cs
- SecurityValidationBehavior.cs