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
*/
///
/// [To be supplied.]
///
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;
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlExpressionNullability.cs
- X509Extension.cs
- InvalidEnumArgumentException.cs
- WebPartCatalogCloseVerb.cs
- FormCollection.cs
- ParameterCollection.cs
- VarInfo.cs
- OpenFileDialog.cs
- Setter.cs
- HMAC.cs
- VirtualPathProvider.cs
- VirtualizingPanel.cs
- SQLMoneyStorage.cs
- AssemblyNameProxy.cs
- FixedSOMTableCell.cs
- PerformanceCounterManager.cs
- ProfileModule.cs
- MessageBox.cs
- LifetimeServices.cs
- SymbolType.cs
- VoiceObjectToken.cs
- AnnotationComponentManager.cs
- OpCellTreeNode.cs
- CategoryEditor.cs
- TextFormatterHost.cs
- SqlConnectionStringBuilder.cs
- PipelineModuleStepContainer.cs
- PreservationFileReader.cs
- AlternateView.cs
- XmlMessageFormatter.cs
- MutexSecurity.cs
- IntPtr.cs
- InternalConfigRoot.cs
- DeriveBytes.cs
- EncryptedPackageFilter.cs
- dataSvcMapFileLoader.cs
- FastEncoderWindow.cs
- DbSource.cs
- CodePageEncoding.cs
- ProfileServiceManager.cs
- Page.cs
- ExtensionSimplifierMarkupObject.cs
- NotifyParentPropertyAttribute.cs
- PrinterSettings.cs
- XmlExpressionDumper.cs
- PagesSection.cs
- BaseParser.cs
- Triangle.cs
- InstanceDataCollectionCollection.cs
- FontCollection.cs
- Track.cs
- Choices.cs
- _ProxyChain.cs
- InstanceStoreQueryResult.cs
- MDIClient.cs
- BaseDataList.cs
- QilTargetType.cs
- Calendar.cs
- TextCompositionEventArgs.cs
- ClassImporter.cs
- IndicCharClassifier.cs
- CodeValidator.cs
- AsymmetricAlgorithm.cs
- ForAllOperator.cs
- KnownTypesHelper.cs
- UnsafeNativeMethods.cs
- Cursor.cs
- XmlSignatureManifest.cs
- BinaryObjectWriter.cs
- SoapElementAttribute.cs
- FillErrorEventArgs.cs
- DurableTimerExtension.cs
- XmlCountingReader.cs
- ItemDragEvent.cs
- DateTimeFormatInfo.cs
- GridViewUpdateEventArgs.cs
- SqlMethodTransformer.cs
- SqlCacheDependencySection.cs
- PolicyStatement.cs
- MissingFieldException.cs
- ResourceManagerWrapper.cs
- Point3DAnimationBase.cs
- ConvertersCollection.cs
- PointAnimation.cs
- CatalogPartChrome.cs
- _LocalDataStoreMgr.cs
- DropSource.cs
- XDeferredAxisSource.cs
- EnumerableValidator.cs
- DataControlFieldCell.cs
- Maps.cs
- LinkUtilities.cs
- BuildResultCache.cs
- TimeIntervalCollection.cs
- TrackingStringDictionary.cs
- DynamicVirtualDiscoSearcher.cs
- ToolStripSeparatorRenderEventArgs.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ProxyWebPartConnectionCollection.cs
- XPathAxisIterator.cs