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
- UserPersonalizationStateInfo.cs
- FixUpCollection.cs
- AnnotationResourceChangedEventArgs.cs
- StandardBindingElementCollection.cs
- RegistrySecurity.cs
- DSACryptoServiceProvider.cs
- basenumberconverter.cs
- CodeTypeDeclaration.cs
- DataSpaceManager.cs
- DataContractSet.cs
- RSAPKCS1SignatureFormatter.cs
- NotifyIcon.cs
- RoleManagerModule.cs
- UnionCodeGroup.cs
- ContractsBCL.cs
- Panel.cs
- SessionState.cs
- FormatterServices.cs
- ContractBase.cs
- ParameterCollection.cs
- ProfileParameter.cs
- SyndicationDeserializer.cs
- DataGridSortCommandEventArgs.cs
- ColumnResizeAdorner.cs
- PreviewPageInfo.cs
- CompilerGeneratedAttribute.cs
- PropertyChangedEventManager.cs
- CompiledRegexRunnerFactory.cs
- SharedConnectionWorkflowTransactionService.cs
- ScrollChangedEventArgs.cs
- RowTypeElement.cs
- SemanticBasicElement.cs
- SourceChangedEventArgs.cs
- ExpressionVisitor.cs
- Stroke2.cs
- XmlLinkedNode.cs
- SlotInfo.cs
- TriggerCollection.cs
- ListViewGroupItemCollection.cs
- _NegotiateClient.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SmiContextFactory.cs
- LinkArea.cs
- Debug.cs
- MetadataPropertyCollection.cs
- Geometry3D.cs
- Animatable.cs
- RegistryDataKey.cs
- PipeSecurity.cs
- InvalidContentTypeException.cs
- SimpleParser.cs
- SqlCommand.cs
- arc.cs
- BitmapEffectvisualstate.cs
- BaseTemplateCodeDomTreeGenerator.cs
- RightsManagementPermission.cs
- ControlPager.cs
- MailMessageEventArgs.cs
- CodeObjectCreateExpression.cs
- WebPartConnectionsEventArgs.cs
- ProfessionalColorTable.cs
- HtmlValidatorAdapter.cs
- SettingsSection.cs
- RoleManagerEventArgs.cs
- LocatorPartList.cs
- UdpContractFilterBehavior.cs
- URLIdentityPermission.cs
- PointHitTestResult.cs
- RoutedPropertyChangedEventArgs.cs
- Span.cs
- HtmlImage.cs
- CompiledQuery.cs
- SizeValueSerializer.cs
- ValueQuery.cs
- HtmlFormWrapper.cs
- ObjectViewFactory.cs
- EntityDataReader.cs
- IndividualDeviceConfig.cs
- LocalizationComments.cs
- XmlSchemaSimpleContentRestriction.cs
- HopperCache.cs
- SmtpClient.cs
- NamedPipeProcessProtocolHandler.cs
- EventArgs.cs
- StrokeCollection.cs
- WeakReferenceList.cs
- glyphs.cs
- RequestSecurityToken.cs
- Object.cs
- CodeSnippetCompileUnit.cs
- EndpointAddress.cs
- ColumnMapTranslator.cs
- BaseCollection.cs
- SchemaImporterExtension.cs
- OrderByBuilder.cs
- OracleSqlParser.cs
- NativeCppClassAttribute.cs
- ZeroOpNode.cs
- DragAssistanceManager.cs
- MenuCommands.cs