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
- NominalTypeEliminator.cs
- TableAutomationPeer.cs
- StreamWithDictionary.cs
- ExtendedPropertyDescriptor.cs
- CheckBox.cs
- XmlToDatasetMap.cs
- ExpressionBindingsDialog.cs
- UrlAuthorizationModule.cs
- RuntimeIdentifierPropertyAttribute.cs
- LineInfo.cs
- HScrollProperties.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- QilLiteral.cs
- Vector3DCollectionConverter.cs
- ForeignKeyConstraint.cs
- RuntimeEnvironment.cs
- PlatformCulture.cs
- MethodExpr.cs
- ToolboxItem.cs
- IndexerNameAttribute.cs
- AdornedElementPlaceholder.cs
- FileResponseElement.cs
- SecurityTokenTypes.cs
- SafeRightsManagementHandle.cs
- BitmapFrameDecode.cs
- TextFormatter.cs
- MiniLockedBorderGlyph.cs
- FontFamily.cs
- DataProtection.cs
- DtdParser.cs
- CultureMapper.cs
- _SslState.cs
- TCPListener.cs
- OleDbCommandBuilder.cs
- DataGridHeaderBorder.cs
- Collection.cs
- CommentAction.cs
- LostFocusEventManager.cs
- SQLInt16.cs
- Themes.cs
- AsymmetricSignatureDeformatter.cs
- MouseEvent.cs
- ClientSettingsStore.cs
- ItemsPanelTemplate.cs
- XmlWrappingReader.cs
- QueryTaskGroupState.cs
- Geometry.cs
- DataBindingExpressionBuilder.cs
- GridViewColumn.cs
- UniqueEventHelper.cs
- NavigationExpr.cs
- XmlTextEncoder.cs
- DetailsViewCommandEventArgs.cs
- _SSPISessionCache.cs
- HtmlInputHidden.cs
- WMICapabilities.cs
- DocumentViewerConstants.cs
- xmlfixedPageInfo.cs
- NetworkCredential.cs
- AsyncPostBackTrigger.cs
- PageHandlerFactory.cs
- XmlSerializerImportOptions.cs
- TableColumn.cs
- ContentControl.cs
- _UriTypeConverter.cs
- ResourceProperty.cs
- CellCreator.cs
- Freezable.cs
- TdsParserSafeHandles.cs
- ArgIterator.cs
- DataRelationPropertyDescriptor.cs
- ElementMarkupObject.cs
- JsonEncodingStreamWrapper.cs
- FontClient.cs
- WebServiceHandlerFactory.cs
- CodeExpressionStatement.cs
- DelegateInArgument.cs
- counter.cs
- ListViewGroupItemCollection.cs
- FilteredReadOnlyMetadataCollection.cs
- TypeLoadException.cs
- XComponentModel.cs
- RuntimeWrappedException.cs
- SmiContextFactory.cs
- Resources.Designer.cs
- SinglePageViewer.cs
- odbcmetadatacolumnnames.cs
- FrameworkRichTextComposition.cs
- Double.cs
- PeerCollaboration.cs
- VisualProxy.cs
- InvalidateEvent.cs
- FormViewInsertedEventArgs.cs
- TokenBasedSetEnumerator.cs
- Pointer.cs
- TextEditorSelection.cs
- FixedSOMElement.cs
- ClickablePoint.cs
- DbTransaction.cs
- ControlBindingsCollection.cs