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
- ImageFormat.cs
- ComplexType.cs
- CaseInsensitiveOrdinalStringComparer.cs
- entitydatasourceentitysetnameconverter.cs
- BoolExpressionVisitors.cs
- PeerToPeerException.cs
- XPathParser.cs
- StringUtil.cs
- ContentType.cs
- WebPartTracker.cs
- DefaultProxySection.cs
- RtfFormatStack.cs
- EntityConnection.cs
- CompositeFontInfo.cs
- ping.cs
- WebPartConnectVerb.cs
- BasicExpressionVisitor.cs
- AsyncPostBackTrigger.cs
- PreservationFileWriter.cs
- CertificateReferenceElement.cs
- BlurBitmapEffect.cs
- DefaultValueAttribute.cs
- IntPtr.cs
- SQLDateTime.cs
- VerticalAlignConverter.cs
- DataServiceConfiguration.cs
- PartialClassGenerationTaskInternal.cs
- CroppedBitmap.cs
- ClientBuildManager.cs
- FieldNameLookup.cs
- VirtualDirectoryMappingCollection.cs
- DataRowComparer.cs
- ElementsClipboardData.cs
- PassportAuthenticationModule.cs
- DesignerHost.cs
- TabRenderer.cs
- FlowDocumentPaginator.cs
- CultureSpecificStringDictionary.cs
- MailWebEventProvider.cs
- LoadWorkflowByInstanceKeyCommand.cs
- ContainerVisual.cs
- SQLResource.cs
- DBConcurrencyException.cs
- ApplicationFileParser.cs
- ContextStaticAttribute.cs
- PropertyPath.cs
- PreApplicationStartMethodAttribute.cs
- EventsTab.cs
- TableAutomationPeer.cs
- ThicknessConverter.cs
- Int32EqualityComparer.cs
- DbMetaDataCollectionNames.cs
- SecurityTokenResolver.cs
- SafeRightsManagementSessionHandle.cs
- XmlParserContext.cs
- UTF32Encoding.cs
- ExpressionDumper.cs
- ClickablePoint.cs
- ViewBox.cs
- DataGridCell.cs
- MetadataUtilsSmi.cs
- CodeTypeReferenceExpression.cs
- XmlLanguageConverter.cs
- DebugManager.cs
- DependencyPropertyChangedEventArgs.cs
- configsystem.cs
- X509AudioLogo.cs
- SoapTransportImporter.cs
- PostBackOptions.cs
- Figure.cs
- StructuredProperty.cs
- HtmlShim.cs
- SafeCryptContextHandle.cs
- MemoryRecordBuffer.cs
- SystemIPv6InterfaceProperties.cs
- Rule.cs
- ToolStripLabel.cs
- TabControlToolboxItem.cs
- DesignerWithHeader.cs
- LoginDesigner.cs
- ConfigurationSection.cs
- baseaxisquery.cs
- HtmlImage.cs
- NativeMethods.cs
- InvalidPrinterException.cs
- MetabaseServerConfig.cs
- StoreItemCollection.cs
- SecurityDescriptor.cs
- diagnosticsswitches.cs
- smtppermission.cs
- HttpCachePolicy.cs
- InputLangChangeRequestEvent.cs
- ScaleTransform.cs
- InstanceStore.cs
- securestring.cs
- IDReferencePropertyAttribute.cs
- EntityViewGenerationConstants.cs
- BinaryFormatterWriter.cs
- DocumentReferenceCollection.cs
- LineBreakRecord.cs