Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LifetimeServices.cs
- BitmapEffect.cs
- UnionCqlBlock.cs
- SecurityCriticalDataForSet.cs
- linebase.cs
- ValidationHelper.cs
- EmptyElement.cs
- DispatcherHooks.cs
- DetailsViewCommandEventArgs.cs
- IgnoreSection.cs
- AspCompat.cs
- Attribute.cs
- Tuple.cs
- IpcPort.cs
- DefaultValueConverter.cs
- SoapEnumAttribute.cs
- ICollection.cs
- DirectionalAction.cs
- ControlBindingsCollection.cs
- PasswordDeriveBytes.cs
- TableColumnCollection.cs
- BitmapEncoder.cs
- ImportStoreException.cs
- DocumentViewerConstants.cs
- XPathParser.cs
- DeploymentSection.cs
- XmlnsCache.cs
- GroupQuery.cs
- InstancePersistenceContext.cs
- GridViewRowCollection.cs
- CorruptingExceptionCommon.cs
- __Error.cs
- SafeEventLogWriteHandle.cs
- WebPartMenu.cs
- ToolStripItemRenderEventArgs.cs
- DropDownList.cs
- ActiveXContainer.cs
- XmlEntityReference.cs
- ContextBase.cs
- TypedReference.cs
- ThumbAutomationPeer.cs
- XslVisitor.cs
- ProgressBarAutomationPeer.cs
- EventLogConfiguration.cs
- FontDifferentiator.cs
- XmlILStorageConverter.cs
- _ChunkParse.cs
- ApplicationInfo.cs
- DataGridRowsPresenter.cs
- EnumBuilder.cs
- ACL.cs
- FrameworkContentElementAutomationPeer.cs
- DataSysAttribute.cs
- PolicyStatement.cs
- SpeechRecognitionEngine.cs
- OleDbEnumerator.cs
- ContentElement.cs
- HttpWebRequest.cs
- Condition.cs
- XmlNamespaceDeclarationsAttribute.cs
- InkPresenter.cs
- EventHandlersStore.cs
- DockAndAnchorLayout.cs
- DoubleLink.cs
- CachingHintValidation.cs
- WriteFileContext.cs
- HttpCapabilitiesBase.cs
- BaseParagraph.cs
- PrimitiveSchema.cs
- OleTxTransactionInfo.cs
- CompilerParameters.cs
- TimeSpanMinutesConverter.cs
- FormsIdentity.cs
- MsmqIntegrationOutputChannel.cs
- Guid.cs
- PropertyIDSet.cs
- IMembershipProvider.cs
- TraceContextRecord.cs
- Range.cs
- EventManager.cs
- RemotingException.cs
- MetaModel.cs
- FigureParagraph.cs
- ValueQuery.cs
- TraceInternal.cs
- FlagsAttribute.cs
- ParserHooks.cs
- EmptyQuery.cs
- DbConnectionPoolCounters.cs
- XMLUtil.cs
- CacheDependency.cs
- COM2ICategorizePropertiesHandler.cs
- FixedHighlight.cs
- PersonalizationProviderHelper.cs
- Latin1Encoding.cs
- FileVersionInfo.cs
- InkCollectionBehavior.cs
- CleanUpVirtualizedItemEventArgs.cs
- SHA384Managed.cs
- SizeFConverter.cs