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
- SqlHelper.cs
- ConstraintManager.cs
- TextEncodedRawTextWriter.cs
- WorkflowServiceHostFactory.cs
- UnsafeNativeMethodsPenimc.cs
- SQLString.cs
- _IPv4Address.cs
- MouseCaptureWithinProperty.cs
- SvcFileManager.cs
- _SecureChannel.cs
- ObjectQuery_EntitySqlExtensions.cs
- XamlInterfaces.cs
- ApplicationProxyInternal.cs
- XhtmlBasicImageAdapter.cs
- AccessDataSource.cs
- SemanticResolver.cs
- AutomationPatternInfo.cs
- WindowsProgressbar.cs
- ButtonBaseAutomationPeer.cs
- AppSettingsExpressionBuilder.cs
- ReturnValue.cs
- MatrixTransform3D.cs
- FaultBookmark.cs
- InternalSafeNativeMethods.cs
- ProfileInfo.cs
- HtmlTableRow.cs
- ScriptingRoleServiceSection.cs
- ScriptControlDescriptor.cs
- IPHostEntry.cs
- Package.cs
- LinearGradientBrush.cs
- mediaclock.cs
- WebServiceBindingAttribute.cs
- XmlSchemaIdentityConstraint.cs
- BindingCollection.cs
- DataControlButton.cs
- PagedDataSource.cs
- AutomationTextAttribute.cs
- IndexedSelectQueryOperator.cs
- EnumMemberAttribute.cs
- DbConnectionOptions.cs
- PopOutPanel.cs
- NotificationContext.cs
- ClickablePoint.cs
- _NetworkingPerfCounters.cs
- ParallelActivityDesigner.cs
- XmlUtil.cs
- ContextMenuService.cs
- NativeMethods.cs
- KeyboardEventArgs.cs
- SqlDataSource.cs
- MethodAccessException.cs
- EntityDataSourceWrapperCollection.cs
- EmbeddedObject.cs
- ActiveXHost.cs
- FileNotFoundException.cs
- GZipDecoder.cs
- JsonWriter.cs
- XmlDataImplementation.cs
- ColorAnimationBase.cs
- TakeQueryOptionExpression.cs
- And.cs
- TypefaceCollection.cs
- _LocalDataStoreMgr.cs
- ValueProviderWrapper.cs
- DateTime.cs
- WebPartManager.cs
- Int32.cs
- TextTreeText.cs
- ByteConverter.cs
- StringToken.cs
- FunctionGenerator.cs
- CellParagraph.cs
- FormatConvertedBitmap.cs
- MarshalByRefObject.cs
- _AcceptOverlappedAsyncResult.cs
- SchemaElementLookUpTable.cs
- Msec.cs
- OdbcConnection.cs
- Thread.cs
- ADMembershipUser.cs
- WriteFileContext.cs
- NetworkStream.cs
- TreeViewAutomationPeer.cs
- OleDbWrapper.cs
- SmtpMail.cs
- ListBindingConverter.cs
- IMembershipProvider.cs
- HtmlEncodedRawTextWriter.cs
- RectangleHotSpot.cs
- prefixendpointaddressmessagefilter.cs
- SQLInt32.cs
- Timeline.cs
- XmlSerializer.cs
- SelectiveScrollingGrid.cs
- TextEditorTables.cs
- ViewBox.cs
- ComponentSerializationService.cs
- LocatorGroup.cs
- TreeBuilder.cs