Code:
/ FX-1434 / FX-1434 / 1.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
- VisualBrush.cs
- HMACSHA512.cs
- IInstanceContextProvider.cs
- PrivilegeNotHeldException.cs
- DefaultTextStore.cs
- OracleCommandSet.cs
- coordinatorscratchpad.cs
- HtmlElementCollection.cs
- ApplicationActivator.cs
- RecognizerInfo.cs
- GridItemPattern.cs
- PropertyRecord.cs
- MimeObjectFactory.cs
- DESCryptoServiceProvider.cs
- XhtmlBasicTextBoxAdapter.cs
- ExplicitDiscriminatorMap.cs
- CodeDirectionExpression.cs
- WebBrowsableAttribute.cs
- ListBox.cs
- MethodExpression.cs
- Control.cs
- ViewBase.cs
- StrongNameIdentityPermission.cs
- DrawListViewColumnHeaderEventArgs.cs
- recordstate.cs
- CultureMapper.cs
- ConnectorDragDropGlyph.cs
- DataSetMappper.cs
- ClientTargetSection.cs
- Odbc32.cs
- LogExtent.cs
- RepeatButton.cs
- VectorKeyFrameCollection.cs
- HtmlToClrEventProxy.cs
- XamlVector3DCollectionSerializer.cs
- MailMessage.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- AssociativeAggregationOperator.cs
- StreamUpgradeBindingElement.cs
- WorkflowIdleBehavior.cs
- BaseTreeIterator.cs
- ValidationRuleCollection.cs
- TransformerInfoCollection.cs
- DesignRelationCollection.cs
- Win32.cs
- DocumentPageView.cs
- DocumentEventArgs.cs
- OrderByLifter.cs
- SystemIPInterfaceStatistics.cs
- SimpleTypeResolver.cs
- DrawingBrush.cs
- HttpClientCertificate.cs
- Win32KeyboardDevice.cs
- PropertyItemInternal.cs
- OrthographicCamera.cs
- LicenseProviderAttribute.cs
- XmlMemberMapping.cs
- RegexCode.cs
- FileDialog.cs
- TransactionTable.cs
- CharacterString.cs
- CheckBoxAutomationPeer.cs
- PermissionSetEnumerator.cs
- ResourceType.cs
- EntityFunctions.cs
- Utility.cs
- SQLMoney.cs
- MemoryStream.cs
- GradientSpreadMethodValidation.cs
- CompilationUtil.cs
- TextBreakpoint.cs
- CharAnimationUsingKeyFrames.cs
- XmlSerializationWriter.cs
- ExpandSegmentCollection.cs
- AssemblyInfo.cs
- GetCryptoTransformRequest.cs
- DictionaryBase.cs
- wmiprovider.cs
- controlskin.cs
- TypeNameConverter.cs
- BufferedGraphicsManager.cs
- SectionRecord.cs
- _TimerThread.cs
- GridViewAutoFormat.cs
- MSHTMLHost.cs
- VisualTarget.cs
- SmtpCommands.cs
- CssStyleCollection.cs
- PeerNameResolver.cs
- UnmanagedMarshal.cs
- QuadraticBezierSegment.cs
- DockPanel.cs
- DictionaryKeyPropertyAttribute.cs
- PackageDigitalSignatureManager.cs
- ViewPort3D.cs
- WaitForChangedResult.cs
- DefaultHttpHandler.cs
- TypeGeneratedEventArgs.cs
- MergeFilterQuery.cs
- Subset.cs