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
- VectorAnimation.cs
- userdatakeys.cs
- PasswordDeriveBytes.cs
- QuaternionAnimation.cs
- TextEditorLists.cs
- ExclusiveTcpTransportManager.cs
- SchemaImporter.cs
- BamlReader.cs
- PrtTicket_Editor.cs
- followingsibling.cs
- IPipelineRuntime.cs
- DistinctQueryOperator.cs
- PasswordBox.cs
- TemplateField.cs
- MultipleViewProviderWrapper.cs
- Material.cs
- ElementHostPropertyMap.cs
- BidOverLoads.cs
- ButtonAutomationPeer.cs
- CommonRemoteMemoryBlock.cs
- ISO2022Encoding.cs
- NotifyCollectionChangedEventArgs.cs
- AsnEncodedData.cs
- XsltSettings.cs
- IPEndPointCollection.cs
- DocumentPageView.cs
- WindowsSolidBrush.cs
- HttpCachePolicyWrapper.cs
- PerfCounterSection.cs
- PresentationTraceSources.cs
- Compress.cs
- FileLogRecord.cs
- WebPartUtil.cs
- xmlsaver.cs
- ContextStack.cs
- XpsFixedPageReaderWriter.cs
- WindowsAuthenticationModule.cs
- InvokeWebServiceDesigner.cs
- BoundField.cs
- SqlDataSourceStatusEventArgs.cs
- BasicCellRelation.cs
- IDReferencePropertyAttribute.cs
- ProgressBarHighlightConverter.cs
- objectresult_tresulttype.cs
- DispatcherHooks.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- ElementHostPropertyMap.cs
- RelationshipNavigation.cs
- ConsoleKeyInfo.cs
- FolderBrowserDialogDesigner.cs
- DrawingState.cs
- XPathDocumentBuilder.cs
- PageStatePersister.cs
- SocketException.cs
- unsafenativemethodstextservices.cs
- DelimitedListTraceListener.cs
- CaseInsensitiveComparer.cs
- OleDbDataReader.cs
- OdbcStatementHandle.cs
- X509WindowsSecurityToken.cs
- WorkflowRuntimeServiceElement.cs
- AssociationTypeEmitter.cs
- ResourceAttributes.cs
- AccessDataSourceView.cs
- NotEqual.cs
- Ref.cs
- FixedElement.cs
- LineSegment.cs
- Animatable.cs
- SendSecurityHeaderElementContainer.cs
- ApplicationManager.cs
- SingleObjectCollection.cs
- DocumentViewerHelper.cs
- OutOfProcStateClientManager.cs
- EntityUtil.cs
- ExecutionContext.cs
- CatalogZoneBase.cs
- ConfigurationStrings.cs
- ElementUtil.cs
- InvalidDataContractException.cs
- RelationalExpressions.cs
- TableItemPattern.cs
- TargetInvocationException.cs
- EmptyStringExpandableObjectConverter.cs
- ObjectDataSourceFilteringEventArgs.cs
- ColumnHeaderConverter.cs
- XmlSchemaException.cs
- DependencyPropertyConverter.cs
- GenericAuthenticationEventArgs.cs
- ColumnReorderedEventArgs.cs
- HttpContext.cs
- loginstatus.cs
- ProfileServiceManager.cs
- wmiprovider.cs
- LockedHandleGlyph.cs
- OptionUsage.cs
- ColumnMap.cs
- PreProcessInputEventArgs.cs
- CodeVariableDeclarationStatement.cs
- SolidColorBrush.cs