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
- ZipIOLocalFileBlock.cs
- MarginCollapsingState.cs
- DictionaryContent.cs
- COM2PropertyDescriptor.cs
- FrameworkElementFactory.cs
- XsdDuration.cs
- FloatUtil.cs
- DocumentGridContextMenu.cs
- webproxy.cs
- SupportingTokenProviderSpecification.cs
- ComponentDispatcherThread.cs
- PenThread.cs
- ObjectDataSourceSelectingEventArgs.cs
- DeploymentExceptionMapper.cs
- DataObjectMethodAttribute.cs
- ScriptingWebServicesSectionGroup.cs
- RightsManagementUser.cs
- GeometryConverter.cs
- AssociativeAggregationOperator.cs
- FixedSOMFixedBlock.cs
- Selection.cs
- XPathScanner.cs
- Guid.cs
- ItemsPresenter.cs
- InputGestureCollection.cs
- XmlSchemaComplexContent.cs
- WebHttpBindingCollectionElement.cs
- AuthorizationRule.cs
- XmlSerializer.cs
- FolderNameEditor.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SystemTcpConnection.cs
- CodeComment.cs
- KeyValueSerializer.cs
- AssociationSetEnd.cs
- Config.cs
- FilteredXmlReader.cs
- ADConnectionHelper.cs
- FirstMatchCodeGroup.cs
- FrameworkElement.cs
- SignatureDescription.cs
- TextLine.cs
- Application.cs
- LayoutEvent.cs
- FormViewInsertEventArgs.cs
- DataGridViewMethods.cs
- TypeInitializationException.cs
- TransformConverter.cs
- KeyBinding.cs
- EntitySqlQueryCacheEntry.cs
- StylusEventArgs.cs
- CompositeDataBoundControl.cs
- InvokePattern.cs
- _SslStream.cs
- SplineQuaternionKeyFrame.cs
- PageCatalogPart.cs
- XmlILConstructAnalyzer.cs
- CustomCategoryAttribute.cs
- ProviderMetadataCachedInformation.cs
- CodeIndexerExpression.cs
- XmlArrayAttribute.cs
- AppDomainManager.cs
- FunctionQuery.cs
- RSAPKCS1SignatureDeformatter.cs
- UnsafeCollabNativeMethods.cs
- ApplicationActivator.cs
- PopupRootAutomationPeer.cs
- ViewPort3D.cs
- RetrieveVirtualItemEventArgs.cs
- Run.cs
- ScriptBehaviorDescriptor.cs
- EntityDataSourceValidationException.cs
- ListViewDataItem.cs
- DocumentCollection.cs
- RoleExceptions.cs
- AdornerLayer.cs
- ReplyChannelAcceptor.cs
- hwndwrapper.cs
- ConnectionPoint.cs
- PcmConverter.cs
- HtmlInputControl.cs
- _NtlmClient.cs
- Model3DCollection.cs
- DataGridViewColumn.cs
- ScriptMethodAttribute.cs
- IndexedEnumerable.cs
- TransactionsSectionGroup.cs
- DynamicEntity.cs
- SetIndexBinder.cs
- KeyGesture.cs
- TextControlDesigner.cs
- KeyValueConfigurationElement.cs
- CroppedBitmap.cs
- StateRuntime.cs
- DataObjectMethodAttribute.cs
- ArrangedElementCollection.cs
- GridItemPattern.cs
- MessageSecurityException.cs
- ListBoxItemWrapperAutomationPeer.cs
- UmAlQuraCalendar.cs