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
- UpdatePanel.cs
- GridEntry.cs
- MdbDataFileEditor.cs
- FtpWebRequest.cs
- CompoundFileStorageReference.cs
- EmptyReadOnlyDictionaryInternal.cs
- RenderCapability.cs
- HuffmanTree.cs
- AppSettingsExpressionEditor.cs
- Visitor.cs
- ScrollBarAutomationPeer.cs
- ProgressPage.cs
- SystemDiagnosticsSection.cs
- ToolBarOverflowPanel.cs
- SQLInt32Storage.cs
- ObjectCacheSettings.cs
- UserControl.cs
- TemplateBuilder.cs
- TriState.cs
- NullableConverter.cs
- TypeSystem.cs
- Baml6ConstructorInfo.cs
- SqlDataRecord.cs
- SerializationStore.cs
- DateTimeHelper.cs
- StringCollectionMarkupSerializer.cs
- ThreadExceptionEvent.cs
- HttpErrorTraceRecord.cs
- DataGridViewImageCell.cs
- CodeAttributeDeclarationCollection.cs
- DBParameter.cs
- HttpInputStream.cs
- GeneralTransform.cs
- EmptyStringExpandableObjectConverter.cs
- MultiTouchSystemGestureLogic.cs
- CachedCompositeFamily.cs
- TextServicesManager.cs
- MultiPropertyDescriptorGridEntry.cs
- SecurityState.cs
- PrintDialog.cs
- FontClient.cs
- FixedSOMContainer.cs
- StorageEntityContainerMapping.cs
- ControlEvent.cs
- WindowsListViewItem.cs
- WindowsListViewItem.cs
- CustomError.cs
- ProxyWebPartManager.cs
- SupportsEventValidationAttribute.cs
- XmlSchemaSimpleType.cs
- BuilderPropertyEntry.cs
- ServiceDescriptionReflector.cs
- ResolveNameEventArgs.cs
- ApplySecurityAndSendAsyncResult.cs
- PropertyConverter.cs
- Slider.cs
- ClientFormsIdentity.cs
- InputBindingCollection.cs
- XmlValidatingReaderImpl.cs
- SqlParameter.cs
- NavigationCommands.cs
- Attributes.cs
- RoleManagerEventArgs.cs
- ListViewTableRow.cs
- WindowsScrollBar.cs
- FunctionImportElement.cs
- TypeDescriptor.cs
- File.cs
- WizardStepBase.cs
- Adorner.cs
- Opcode.cs
- HttpProfileBase.cs
- ImageButton.cs
- CryptoProvider.cs
- WebProxyScriptElement.cs
- DefaultPerformanceCounters.cs
- InvalidCastException.cs
- OracleTimeSpan.cs
- RegexWriter.cs
- ConfigurationPropertyAttribute.cs
- ValidationErrorEventArgs.cs
- InputScopeNameConverter.cs
- InsufficientMemoryException.cs
- DataConnectionHelper.cs
- SqlDataReader.cs
- Selection.cs
- HandleCollector.cs
- StorageEntityContainerMapping.cs
- ContextInformation.cs
- PropertyDescriptorComparer.cs
- TreeNodeStyleCollection.cs
- RelatedCurrencyManager.cs
- CalendarButton.cs
- ChangePassword.cs
- NavigationProgressEventArgs.cs
- GenericEnumConverter.cs
- DrawingContextDrawingContextWalker.cs
- WebContext.cs
- ProtocolsConfigurationEntry.cs
- Int16Storage.cs