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
- LineProperties.cs
- SafeMarshalContext.cs
- SecurityTokenException.cs
- ContextMenuStripActionList.cs
- WinCategoryAttribute.cs
- ManagementBaseObject.cs
- OracleParameterCollection.cs
- UnmanagedMemoryStreamWrapper.cs
- __Filters.cs
- TabItemWrapperAutomationPeer.cs
- SqlCacheDependencyDatabase.cs
- Variant.cs
- XPathDocument.cs
- AlternateViewCollection.cs
- ReferentialConstraintRoleElement.cs
- ToolConsole.cs
- MarkupCompilePass2.cs
- StrokeDescriptor.cs
- SqlCaseSimplifier.cs
- ParallelQuery.cs
- MessageFilter.cs
- List.cs
- UpdatePanelTrigger.cs
- PatternMatcher.cs
- TextFormattingConverter.cs
- WebProxyScriptElement.cs
- LineServicesRun.cs
- Util.cs
- ContactManager.cs
- TextureBrush.cs
- FormCollection.cs
- safelinkcollection.cs
- ListViewGroupConverter.cs
- DataGridViewCellFormattingEventArgs.cs
- cookieexception.cs
- CLSCompliantAttribute.cs
- ByeOperationAsyncResult.cs
- BinaryUtilClasses.cs
- mansign.cs
- StaticResourceExtension.cs
- MemberInfoSerializationHolder.cs
- QueryAccessibilityHelpEvent.cs
- AmbiguousMatchException.cs
- StylusButtonCollection.cs
- SoapProtocolReflector.cs
- PaperSize.cs
- Logging.cs
- CountdownEvent.cs
- ManagementDateTime.cs
- RefExpr.cs
- CodeValidator.cs
- OleDbError.cs
- RuntimeConfigLKG.cs
- StopStoryboard.cs
- DataBoundControl.cs
- NgenServicingAttributes.cs
- FontStretchConverter.cs
- TraceFilter.cs
- WindowsComboBox.cs
- ImageBrush.cs
- CodeDomComponentSerializationService.cs
- DataDocumentXPathNavigator.cs
- StrokeCollection.cs
- XmlSchemaGroupRef.cs
- PropertyDescriptorCollection.cs
- Matrix3DConverter.cs
- WebConfigurationFileMap.cs
- UpdateCommandGenerator.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- DiagnosticEventProvider.cs
- TraceContextRecord.cs
- HtmlEncodedRawTextWriter.cs
- ExtensionFile.cs
- DodSequenceMerge.cs
- WebPartVerbCollection.cs
- EventLogInternal.cs
- SqlAliaser.cs
- ListManagerBindingsCollection.cs
- SoapInteropTypes.cs
- TraceHandlerErrorFormatter.cs
- DataTemplate.cs
- SimpleHandlerFactory.cs
- SessionPageStatePersister.cs
- HtmlInputImage.cs
- SerializationFieldInfo.cs
- FormViewPagerRow.cs
- Canvas.cs
- CaseStatementSlot.cs
- keycontainerpermission.cs
- DrawingContextDrawingContextWalker.cs
- CheckBoxField.cs
- OdbcCommandBuilder.cs
- DocumentSequence.cs
- CompilerScopeManager.cs
- LocalFileSettingsProvider.cs
- PackWebRequest.cs
- localization.cs
- ErrorsHelper.cs
- ComplexObject.cs
- GcHandle.cs