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
- PackagePartCollection.cs
- MethodRental.cs
- PeerInvitationResponse.cs
- WebPartUtil.cs
- FilePrompt.cs
- GradientSpreadMethodValidation.cs
- StrokeNodeEnumerator.cs
- TreeView.cs
- IgnoreSection.cs
- ObjectMemberMapping.cs
- ImageUrlEditor.cs
- TableLayoutCellPaintEventArgs.cs
- StrokeCollection.cs
- DispatcherExceptionEventArgs.cs
- WindowsImpersonationContext.cs
- ButtonBaseAutomationPeer.cs
- CellTreeNode.cs
- DefaultCompensation.cs
- TableCellCollection.cs
- ChoiceConverter.cs
- WebConvert.cs
- StringExpressionSet.cs
- ChildTable.cs
- OleDbRowUpdatingEvent.cs
- InputLanguageProfileNotifySink.cs
- LoginName.cs
- ListBox.cs
- FileClassifier.cs
- MetabaseServerConfig.cs
- ObjectListCommandCollection.cs
- ModuleConfigurationInfo.cs
- CodeTypeReferenceExpression.cs
- SystemTcpStatistics.cs
- Latin1Encoding.cs
- TreeNodeStyleCollection.cs
- CanExecuteRoutedEventArgs.cs
- GetPageCompletedEventArgs.cs
- Vector3DValueSerializer.cs
- FilteredDataSetHelper.cs
- XComponentModel.cs
- ManipulationStartedEventArgs.cs
- ReverseQueryOperator.cs
- DirectionalLight.cs
- DataServiceQueryContinuation.cs
- KeyValueSerializer.cs
- StateWorkerRequest.cs
- UserPersonalizationStateInfo.cs
- ComplexType.cs
- CryptoKeySecurity.cs
- CmsInterop.cs
- Figure.cs
- SerialErrors.cs
- TextParagraphProperties.cs
- InvokeMethodActivity.cs
- Trace.cs
- HttpApplicationFactory.cs
- HostExecutionContextManager.cs
- MobileUITypeEditor.cs
- PrivilegeNotHeldException.cs
- CqlIdentifiers.cs
- DataChangedEventManager.cs
- CharConverter.cs
- StrokeCollection2.cs
- ISAPIApplicationHost.cs
- CustomLineCap.cs
- BreadCrumbTextConverter.cs
- PlainXmlWriter.cs
- FixedStringLookup.cs
- WmfPlaceableFileHeader.cs
- FormatSettings.cs
- BamlLocalizer.cs
- CLRBindingWorker.cs
- ZipFileInfo.cs
- DataGridViewBindingCompleteEventArgs.cs
- SafeHandle.cs
- TreeView.cs
- TraceContext.cs
- TdsParserSessionPool.cs
- NativeCppClassAttribute.cs
- SharedPersonalizationStateInfo.cs
- CatalogZone.cs
- ComplusTypeValidator.cs
- X509SubjectKeyIdentifierClause.cs
- dbenumerator.cs
- BitConverter.cs
- CommandHelpers.cs
- sqlinternaltransaction.cs
- TreeBuilder.cs
- ParsedAttributeCollection.cs
- WebPartDeleteVerb.cs
- UniqueID.cs
- EventSinkHelperWriter.cs
- DrawToolTipEventArgs.cs
- AccessControlEntry.cs
- GraphicsContainer.cs
- DisableDpiAwarenessAttribute.cs
- EntityContainer.cs
- KeyedHashAlgorithm.cs
- LoginName.cs
- DataGridViewColumnStateChangedEventArgs.cs