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
- AnnotationDocumentPaginator.cs
- MimeTypePropertyAttribute.cs
- ProcessHostMapPath.cs
- HttpHandlerAction.cs
- FrugalMap.cs
- CompModHelpers.cs
- AxHost.cs
- HttpWriter.cs
- Html32TextWriter.cs
- UserControlParser.cs
- RelationshipEnd.cs
- Light.cs
- QuadraticBezierSegment.cs
- XmlIgnoreAttribute.cs
- Nullable.cs
- CollectionViewGroupRoot.cs
- ICollection.cs
- ModulesEntry.cs
- ValidationHelpers.cs
- DataGridToolTip.cs
- CodeSubDirectory.cs
- MemberExpression.cs
- RemoteWebConfigurationHostServer.cs
- xsdvalidator.cs
- DetailsViewPagerRow.cs
- AuthenticationException.cs
- RegistrySecurity.cs
- EntityTemplateFactory.cs
- TrackingLocation.cs
- _ProxyRegBlob.cs
- BaseValidator.cs
- UriTemplateTrieNode.cs
- CultureMapper.cs
- HttpServerChannel.cs
- TextEffect.cs
- WorkflowDebuggerSteppingAttribute.cs
- Span.cs
- InputChannelAcceptor.cs
- KnownBoxes.cs
- FacetValues.cs
- Byte.cs
- MinimizableAttributeTypeConverter.cs
- ISAPIRuntime.cs
- UniqueEventHelper.cs
- CompositeScriptReference.cs
- XsltLoader.cs
- AlignmentYValidation.cs
- ReadOnlyAttribute.cs
- StringTraceRecord.cs
- WebPartAuthorizationEventArgs.cs
- TrustSection.cs
- BaseComponentEditor.cs
- TCPListener.cs
- KnowledgeBase.cs
- BinHexEncoding.cs
- AspNetPartialTrustHelpers.cs
- shaper.cs
- RowType.cs
- DocobjHost.cs
- TimeSpanSecondsConverter.cs
- BinarySerializer.cs
- KeyConverter.cs
- DrawListViewSubItemEventArgs.cs
- ReceiveErrorHandling.cs
- ValidationHelpers.cs
- RelationalExpressions.cs
- ChannelBuilder.cs
- Decimal.cs
- BuildProviderAppliesToAttribute.cs
- DataSource.cs
- ProvidePropertyAttribute.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- PageHandlerFactory.cs
- WebPartZoneAutoFormat.cs
- GridSplitterAutomationPeer.cs
- DesignerAdRotatorAdapter.cs
- CqlErrorHelper.cs
- FamilyCollection.cs
- AnimationTimeline.cs
- SchemaImporterExtension.cs
- WindowsTokenRoleProvider.cs
- FigureParagraph.cs
- EntityContainerEmitter.cs
- SecurityDescriptor.cs
- NegationPusher.cs
- Rotation3DAnimationBase.cs
- InstanceOwnerQueryResult.cs
- ADConnectionHelper.cs
- UnsafeNativeMethods.cs
- WMICapabilities.cs
- LoadedEvent.cs
- FilterableAttribute.cs
- DmlSqlGenerator.cs
- DropShadowBitmapEffect.cs
- KeyBinding.cs
- _DomainName.cs
- Type.cs
- AlternateView.cs
- TextWriterTraceListener.cs
- RolePrincipal.cs