Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ReaderWriterLock.cs
- OciEnlistContext.cs
- UnknownMessageReceivedEventArgs.cs
- WebPartManager.cs
- NativeMethods.cs
- DataGridColumnHeaderAutomationPeer.cs
- RemotingConfiguration.cs
- BlockExpression.cs
- BindingSource.cs
- SecurityUtils.cs
- Viewport3DAutomationPeer.cs
- _ScatterGatherBuffers.cs
- FontUnit.cs
- ZipIOExtraFieldPaddingElement.cs
- ImageBrush.cs
- LicFileLicenseProvider.cs
- CqlErrorHelper.cs
- SchemaNames.cs
- TypeDescriptionProvider.cs
- MediaPlayer.cs
- BufferModeSettings.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- ParameterCollection.cs
- RTLAwareMessageBox.cs
- MultipartContentParser.cs
- Range.cs
- ConfigXmlAttribute.cs
- SignatureToken.cs
- DbCommandDefinition.cs
- EntityTypeBase.cs
- DataSourceXmlElementAttribute.cs
- RenderData.cs
- storepermission.cs
- ConfigXmlDocument.cs
- Scripts.cs
- DataGridViewSelectedCellCollection.cs
- VirtualizingStackPanel.cs
- CodeStatement.cs
- AsyncDataRequest.cs
- BufferModesCollection.cs
- HtmlPhoneCallAdapter.cs
- ObjectKeyFrameCollection.cs
- LocalClientSecuritySettings.cs
- DiscoveryServerProtocol.cs
- GenericAuthenticationEventArgs.cs
- DataGridViewTextBoxColumn.cs
- BlurBitmapEffect.cs
- PersistenceMetadataNamespace.cs
- WebConfigurationManager.cs
- RuleDefinitions.cs
- UnknownBitmapDecoder.cs
- SymmetricCryptoHandle.cs
- UIHelper.cs
- Soap12ProtocolReflector.cs
- PageAsyncTaskManager.cs
- RemotingServices.cs
- ToRequest.cs
- PauseStoryboard.cs
- ILGenerator.cs
- HttpCookiesSection.cs
- SmtpNetworkElement.cs
- XPathPatternBuilder.cs
- ISAPIWorkerRequest.cs
- SoapInteropTypes.cs
- WebEventCodes.cs
- ViewBase.cs
- ReturnType.cs
- HtmlForm.cs
- CompilationPass2Task.cs
- MethodImplAttribute.cs
- StrokeNodeEnumerator.cs
- ToolStripOverflow.cs
- Win32Interop.cs
- X509Chain.cs
- MenuItemBinding.cs
- OutgoingWebResponseContext.cs
- HierarchicalDataSourceControl.cs
- EntityDataReader.cs
- MatrixCamera.cs
- ObjectStateEntryDbDataRecord.cs
- RouteItem.cs
- XmlSchemaIdentityConstraint.cs
- BamlRecordReader.cs
- UntrustedRecipientException.cs
- BidirectionalDictionary.cs
- OleDbEnumerator.cs
- TextLineBreak.cs
- ImageProxy.cs
- FileChangesMonitor.cs
- OrderToken.cs
- CustomErrorsSectionWrapper.cs
- ObjectDataSourceSelectingEventArgs.cs
- MsmqInputChannelBase.cs
- ContactManager.cs
- CFStream.cs
- BamlLocalizableResourceKey.cs
- LassoSelectionBehavior.cs
- ProfilePropertyMetadata.cs
- DbCommandTree.cs
- TextTreeText.cs