Code:
/ DotNET / DotNET / 8.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
- UIElementCollection.cs
- Win32Native.cs
- Ipv6Element.cs
- TypeHelper.cs
- FrameworkPropertyMetadata.cs
- HashMembershipCondition.cs
- DesignTableCollection.cs
- MailWriter.cs
- IntPtr.cs
- ContractsBCL.cs
- HistoryEventArgs.cs
- StyleCollection.cs
- XmlComment.cs
- SecurityContext.cs
- SystemDropShadowChrome.cs
- TemplateComponentConnector.cs
- SecurityKeyIdentifierClause.cs
- WizardForm.cs
- RuntimeUtils.cs
- Stylesheet.cs
- CleanUpVirtualizedItemEventArgs.cs
- OdbcErrorCollection.cs
- QilInvoke.cs
- MultipleViewProviderWrapper.cs
- RawStylusInputReport.cs
- ConfigXmlWhitespace.cs
- _SafeNetHandles.cs
- RemoteWebConfigurationHostServer.cs
- TextEndOfLine.cs
- webbrowsersite.cs
- SmtpReplyReaderFactory.cs
- FormatConvertedBitmap.cs
- MediaScriptCommandRoutedEventArgs.cs
- CancelEventArgs.cs
- ExtractedStateEntry.cs
- QueryReaderSettings.cs
- HtmlFormParameterReader.cs
- uribuilder.cs
- EntityDataSourceChangedEventArgs.cs
- HttpProtocolReflector.cs
- ReadWriteSpinLock.cs
- HtmlImage.cs
- ResourceExpression.cs
- StylusPlugInCollection.cs
- CaseExpr.cs
- hwndwrapper.cs
- ReferenceList.cs
- ExitEventArgs.cs
- MimeTypeAttribute.cs
- NumericPagerField.cs
- PublisherIdentityPermission.cs
- CompositeCollection.cs
- XmlToDatasetMap.cs
- ControlIdConverter.cs
- EntityDataSourceEntityTypeFilterItem.cs
- StrokeNodeEnumerator.cs
- TraceSwitch.cs
- Identity.cs
- Quaternion.cs
- WebPartConnectionsCancelEventArgs.cs
- DataGridViewHitTestInfo.cs
- ComponentEditorPage.cs
- CaseInsensitiveHashCodeProvider.cs
- PointCollection.cs
- DataGridViewRowStateChangedEventArgs.cs
- DataFormats.cs
- InfiniteTimeSpanConverter.cs
- GcSettings.cs
- InputLanguage.cs
- QueryStringParameter.cs
- IArgumentProvider.cs
- ThreadNeutralSemaphore.cs
- SynchronizationValidator.cs
- DataGrid.cs
- HtmlAnchor.cs
- securitycriticaldataformultiplegetandset.cs
- Journal.cs
- RichListBox.cs
- SpeechAudioFormatInfo.cs
- DocumentCollection.cs
- TypeUsageBuilder.cs
- ArrayTypeMismatchException.cs
- TopClause.cs
- BookmarkUndoUnit.cs
- MarkupCompilePass2.cs
- TreeViewItem.cs
- URLMembershipCondition.cs
- WebDisplayNameAttribute.cs
- DataGridViewColumnDesigner.cs
- Root.cs
- TypeViewSchema.cs
- QilParameter.cs
- XmlProcessingInstruction.cs
- MatrixTransform.cs
- ProtocolsConfiguration.cs
- RepeatBehavior.cs
- MSAAWinEventWrap.cs
- XmlAttributeCollection.cs
- CharStorage.cs
- ResourceDescriptionAttribute.cs