Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } }[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlUtil.cs
- BitmapEffectrendercontext.cs
- PauseStoryboard.cs
- XmlBindingWorker.cs
- UIPermission.cs
- SessionStateContainer.cs
- XmlSchemaCollection.cs
- UserControlCodeDomTreeGenerator.cs
- XmlChildEnumerator.cs
- MasterPageCodeDomTreeGenerator.cs
- PassportIdentity.cs
- SqlFormatter.cs
- MsmqAppDomainProtocolHandler.cs
- ApplicationFileParser.cs
- ErrorLog.cs
- SoapInteropTypes.cs
- BinaryFormatterSinks.cs
- ConstraintCollection.cs
- Empty.cs
- SHA512.cs
- SqlVersion.cs
- SqlTypeConverter.cs
- ConfigurationSectionGroup.cs
- InputScopeAttribute.cs
- InstanceData.cs
- ViewPort3D.cs
- WorkflowWebService.cs
- PropertyGroupDescription.cs
- IpcClientManager.cs
- OlePropertyStructs.cs
- BaseCodeDomTreeGenerator.cs
- AuthenticationServiceManager.cs
- WebServiceErrorEvent.cs
- SqlHelper.cs
- DbBuffer.cs
- RemotingException.cs
- XPathExpr.cs
- FontDriver.cs
- InputReport.cs
- SystemUdpStatistics.cs
- SharedDp.cs
- TableLayoutCellPaintEventArgs.cs
- TypeExtensionSerializer.cs
- UserNameSecurityTokenAuthenticator.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- Attachment.cs
- DataKeyArray.cs
- ClockGroup.cs
- ProcessModelInfo.cs
- NotImplementedException.cs
- TdsParserSessionPool.cs
- ImageSource.cs
- WebColorConverter.cs
- XslCompiledTransform.cs
- SelectManyQueryOperator.cs
- XmlWellformedWriter.cs
- CapabilitiesRule.cs
- DateTimeFormatInfoScanner.cs
- ImportCatalogPart.cs
- WorkflowServiceAttributesTypeConverter.cs
- UIHelper.cs
- DaylightTime.cs
- ExceptionRoutedEventArgs.cs
- safelink.cs
- GenerateScriptTypeAttribute.cs
- AnchoredBlock.cs
- CodeArrayCreateExpression.cs
- FontSourceCollection.cs
- SmtpReplyReader.cs
- StringExpressionSet.cs
- ISessionStateStore.cs
- DefaultValueConverter.cs
- GeometryCombineModeValidation.cs
- FilterableData.cs
- ItemCollection.cs
- HttpConfigurationSystem.cs
- CompatibleComparer.cs
- ModelUIElement3D.cs
- Int32AnimationBase.cs
- DynamicActivityTypeDescriptor.cs
- PropertyPathConverter.cs
- SymbolMethod.cs
- DictionaryBase.cs
- PrintPreviewControl.cs
- ChineseLunisolarCalendar.cs
- Semaphore.cs
- DataSetMappper.cs
- AutomationElementCollection.cs
- Activity.cs
- SystemParameters.cs
- TextContainerHelper.cs
- EnvironmentPermission.cs
- DataObjectEventArgs.cs
- LockCookie.cs
- HttpCapabilitiesSectionHandler.cs
- ScriptReferenceEventArgs.cs
- Random.cs
- DBConcurrencyException.cs
- StylusPointPropertyInfoDefaults.cs
- Rect.cs