Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / SingleTagSectionHandler.cs / 1305376 / 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.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridState.cs
- RowToFieldTransformer.cs
- BaseDataList.cs
- DesignerSerializationManager.cs
- MarginCollapsingState.cs
- WorkflowServiceNamespace.cs
- SingleConverter.cs
- PropagatorResult.cs
- DoubleCollectionValueSerializer.cs
- FixedSOMImage.cs
- SelectionWordBreaker.cs
- ComponentManagerBroker.cs
- ConnectionManagementSection.cs
- CrossAppDomainChannel.cs
- QilGeneratorEnv.cs
- IntAverageAggregationOperator.cs
- DecimalConstantAttribute.cs
- FixedTextContainer.cs
- StreamMarshaler.cs
- FileSystemWatcher.cs
- RadioButtonAutomationPeer.cs
- GridSplitter.cs
- GlyphShapingProperties.cs
- CalendarDateRange.cs
- VirtualStackFrame.cs
- ReflectionTypeLoadException.cs
- StrokeNode.cs
- ColorBuilder.cs
- ToolBarTray.cs
- StyleSelector.cs
- HtmlWindow.cs
- PolyLineSegment.cs
- NGCPageContentSerializerAsync.cs
- EventListener.cs
- safex509handles.cs
- EntityDataSourceEntitySetNameItem.cs
- ArrangedElement.cs
- InputProviderSite.cs
- SoapServerProtocol.cs
- ValidationErrorCollection.cs
- XPathPatternBuilder.cs
- FormatSettings.cs
- XamlTemplateSerializer.cs
- PTUtility.cs
- ConstructorArgumentAttribute.cs
- InfoCardAsymmetricCrypto.cs
- EditorAttribute.cs
- HostDesigntimeLicenseContext.cs
- PenThread.cs
- KeyValueSerializer.cs
- HwndStylusInputProvider.cs
- COM2ComponentEditor.cs
- XXXOnTypeBuilderInstantiation.cs
- PropertyPathConverter.cs
- OleDbPermission.cs
- PropertyOverridesDialog.cs
- IChannel.cs
- XmlReaderSettings.cs
- HasRunnableWorkflowEvent.cs
- VBCodeProvider.cs
- MessageSmuggler.cs
- SessionStateContainer.cs
- DbReferenceCollection.cs
- DebugHandleTracker.cs
- ConditionCollection.cs
- ResourceDefaultValueAttribute.cs
- WebPartUserCapability.cs
- TextEndOfParagraph.cs
- EncryptedXml.cs
- StructuralObject.cs
- WebHeaderCollection.cs
- BuildProvider.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- RegionIterator.cs
- SessionViewState.cs
- NetTcpSecurityElement.cs
- WebControlAdapter.cs
- DataGridViewCheckBoxCell.cs
- MatrixTransform3D.cs
- WindowsRebar.cs
- SQLUtility.cs
- FileLoadException.cs
- GACIdentityPermission.cs
- OperationBehaviorAttribute.cs
- DefaultTextStore.cs
- InternalMappingException.cs
- _RegBlobWebProxyDataBuilder.cs
- ManualResetEvent.cs
- GridErrorDlg.cs
- sqlinternaltransaction.cs
- WpfGeneratedKnownTypes.cs
- ClientSession.cs
- StateRuntime.cs
- AssemblyLoader.cs
- Vector3DConverter.cs
- Triplet.cs
- PolicyException.cs
- ActivityExecutor.cs
- ToolStripDropDownItem.cs
- OneOfConst.cs