Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- HttpListenerTimeoutManager.cs
- RawTextInputReport.cs
- SchemaAttDef.cs
- DataFormats.cs
- path.cs
- RegionData.cs
- EasingKeyFrames.cs
- SqlFileStream.cs
- TableRow.cs
- ClockController.cs
- ConfigurationManager.cs
- DataRelationCollection.cs
- ModelPropertyCollectionImpl.cs
- RawStylusInputCustomDataList.cs
- DataControlField.cs
- TextEvent.cs
- UIEndRequest.cs
- ProviderConnectionPoint.cs
- base64Transforms.cs
- Int64Storage.cs
- TypeNameConverter.cs
- GatewayIPAddressInformationCollection.cs
- TypefaceCollection.cs
- CodeCompileUnit.cs
- SiteMapDataSource.cs
- Metafile.cs
- PointKeyFrameCollection.cs
- ParallelForEach.cs
- LazyTextWriterCreator.cs
- SoapExtensionImporter.cs
- WebPartCloseVerb.cs
- DefaultValueAttribute.cs
- SqlCacheDependency.cs
- Attributes.cs
- SafeFindHandle.cs
- InkCanvasAutomationPeer.cs
- ListViewDeletedEventArgs.cs
- OleDbFactory.cs
- Int32AnimationUsingKeyFrames.cs
- PeerApplication.cs
- StateMachineTimers.cs
- DataControlImageButton.cs
- TheQuery.cs
- KnownTypesHelper.cs
- shaperfactoryquerycacheentry.cs
- ProcessThreadDesigner.cs
- EntityDataSourceChangingEventArgs.cs
- ObjectDataSourceDisposingEventArgs.cs
- NestPullup.cs
- EntityConnection.cs
- FilteredReadOnlyMetadataCollection.cs
- LogicalTreeHelper.cs
- VarRefManager.cs
- ValidatorCollection.cs
- PriorityBinding.cs
- backend.cs
- DataPagerFieldItem.cs
- ObjectDataSourceMethodEventArgs.cs
- Int32AnimationUsingKeyFrames.cs
- ChooseAction.cs
- ChangesetResponse.cs
- UrlAuthFailedErrorFormatter.cs
- DesignerTransaction.cs
- Menu.cs
- ADMembershipUser.cs
- SecurityUniqueId.cs
- PasswordDeriveBytes.cs
- ProcessHost.cs
- DaylightTime.cs
- DoubleCollectionConverter.cs
- DataMemberAttribute.cs
- XhtmlConformanceSection.cs
- EntitySetBaseCollection.cs
- IndependentlyAnimatedPropertyMetadata.cs
- StyleSelector.cs
- SiteMapDataSource.cs
- RootBrowserWindowProxy.cs
- ResourceWriter.cs
- TraceRecords.cs
- DynamicArgumentDialog.cs
- DatagridviewDisplayedBandsData.cs
- HostProtectionPermission.cs
- StringFormat.cs
- FtpCachePolicyElement.cs
- ClientRuntime.cs
- Constants.cs
- RandomNumberGenerator.cs
- _FtpDataStream.cs
- ColorMap.cs
- RowSpanVector.cs
- SchemaManager.cs
- SynchronizationScope.cs
- ApplicationSettingsBase.cs
- _HelperAsyncResults.cs
- ListViewItemCollectionEditor.cs
- ParallelDesigner.cs
- PerformanceCounter.cs
- BitmapImage.cs
- ErrorFormatter.cs
- SqlEnums.cs