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
- EmptyEnumerator.cs
- TimeSpanOrInfiniteConverter.cs
- PageSetupDialog.cs
- COM2ComponentEditor.cs
- ZipIOFileItemStream.cs
- DbConnectionFactory.cs
- GatewayIPAddressInformationCollection.cs
- ComponentEditorForm.cs
- _IPv4Address.cs
- EventLogPermissionAttribute.cs
- ReadOnlyObservableCollection.cs
- StateMachineExecutionState.cs
- EventMappingSettings.cs
- KeyboardDevice.cs
- TemplateParser.cs
- FloaterParagraph.cs
- SQLCharsStorage.cs
- ItemType.cs
- PLINQETWProvider.cs
- RequestCacheEntry.cs
- __ConsoleStream.cs
- IProvider.cs
- CallSiteBinder.cs
- Screen.cs
- RelationshipType.cs
- PasswordBoxAutomationPeer.cs
- Debug.cs
- OdbcStatementHandle.cs
- _DomainName.cs
- DataGridHyperlinkColumn.cs
- LocatorGroup.cs
- EntityViewGenerationAttribute.cs
- DynamicEntity.cs
- filewebresponse.cs
- TextInfo.cs
- SettingsBindableAttribute.cs
- FixedSOMSemanticBox.cs
- ProcessHost.cs
- SpellerHighlightLayer.cs
- SoapIgnoreAttribute.cs
- ListSortDescription.cs
- WeakReferenceList.cs
- PreProcessInputEventArgs.cs
- XmlQueryContext.cs
- ObjectItemConventionAssemblyLoader.cs
- ConvertEvent.cs
- Int32Rect.cs
- LinqDataSourceStatusEventArgs.cs
- WindowsRegion.cs
- UntrustedRecipientException.cs
- UrlPropertyAttribute.cs
- WindowsProgressbar.cs
- ScriptHandlerFactory.cs
- ConnectorSelectionGlyph.cs
- DataGridPreparingCellForEditEventArgs.cs
- SafeRightsManagementEnvironmentHandle.cs
- NativeMethods.cs
- ParseHttpDate.cs
- BinaryFormatter.cs
- X509SubjectKeyIdentifierClause.cs
- PropertyMapper.cs
- RsaEndpointIdentity.cs
- UnsafeNativeMethods.cs
- FileLoadException.cs
- SapiGrammar.cs
- RowUpdatedEventArgs.cs
- PixelFormatConverter.cs
- DataObjectEventArgs.cs
- _BasicClient.cs
- BindUriHelper.cs
- CompiledELinqQueryState.cs
- ProfileSettings.cs
- XpsViewerException.cs
- WizardStepBase.cs
- FormattedTextSymbols.cs
- PopupEventArgs.cs
- DispatcherProcessingDisabled.cs
- rsa.cs
- Version.cs
- WebPartConnectionsEventArgs.cs
- IPipelineRuntime.cs
- MenuItemStyleCollection.cs
- DatagridviewDisplayedBandsData.cs
- oledbmetadatacollectionnames.cs
- WpfXamlType.cs
- ZipArchive.cs
- NativeMethods.cs
- DbExpressionRules.cs
- DocumentXPathNavigator.cs
- SettingsProviderCollection.cs
- MulticastOption.cs
- TextTreePropertyUndoUnit.cs
- RichListBox.cs
- PageAdapter.cs
- Win32MouseDevice.cs
- LogicalExpressionEditor.cs
- SamlSecurityTokenAuthenticator.cs
- WebUtility.cs
- ChannelSinkStacks.cs
- ScriptingScriptResourceHandlerSection.cs