Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- WinFormsComponentEditor.cs
- DataGridHeaderBorder.cs
- DispatcherProcessingDisabled.cs
- typedescriptorpermissionattribute.cs
- HMACSHA512.cs
- WorkflowRuntimeBehavior.cs
- printdlgexmarshaler.cs
- FormParameter.cs
- ErrorCodes.cs
- documentsequencetextcontainer.cs
- XmlComplianceUtil.cs
- DeviceContexts.cs
- ExternalException.cs
- WebPartCancelEventArgs.cs
- BaseParagraph.cs
- TraceEventCache.cs
- TableRowCollection.cs
- Avt.cs
- _NetworkingPerfCounters.cs
- CaseDesigner.xaml.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- XmlSchemaResource.cs
- StandardBindingReliableSessionElement.cs
- TextEffect.cs
- QuaternionKeyFrameCollection.cs
- LocalizedNameDescriptionPair.cs
- DataGridTableStyleMappingNameEditor.cs
- DataGridCellClipboardEventArgs.cs
- KoreanLunisolarCalendar.cs
- StyleSheetDesigner.cs
- Formatter.cs
- DataGridViewRow.cs
- EventRoute.cs
- SourceFilter.cs
- SendingRequestEventArgs.cs
- AsmxEndpointPickerExtension.cs
- TraceEventCache.cs
- SimpleBitVector32.cs
- FtpCachePolicyElement.cs
- ChildTable.cs
- ToolStripProgressBar.cs
- ServiceRouteHandler.cs
- SerializationInfoEnumerator.cs
- PseudoWebRequest.cs
- FixedDocumentSequencePaginator.cs
- IPEndPoint.cs
- DataSourceCacheDurationConverter.cs
- BeginEvent.cs
- ObjectHelper.cs
- ApplicationSecurityInfo.cs
- SemaphoreSecurity.cs
- IndexedWhereQueryOperator.cs
- DigitShape.cs
- ConfigXmlSignificantWhitespace.cs
- Funcletizer.cs
- MinimizableAttributeTypeConverter.cs
- Vector3D.cs
- SqlTypeConverter.cs
- input.cs
- DataFieldConverter.cs
- MenuItemCollectionEditorDialog.cs
- DashStyle.cs
- PostBackTrigger.cs
- TrackingCondition.cs
- ComNativeDescriptor.cs
- XmlFormatWriterGenerator.cs
- UrlEncodedParameterWriter.cs
- SqlTransaction.cs
- WebConfigurationHostFileChange.cs
- ReliableSession.cs
- Roles.cs
- DeferredSelectedIndexReference.cs
- TraceSection.cs
- TableLayoutCellPaintEventArgs.cs
- DataSourceDescriptorCollection.cs
- NonNullItemCollection.cs
- Emitter.cs
- CharEntityEncoderFallback.cs
- GridViewUpdateEventArgs.cs
- TrackingLocation.cs
- DesignerAutoFormatStyle.cs
- AtomEntry.cs
- ListBindingHelper.cs
- RowsCopiedEventArgs.cs
- xdrvalidator.cs
- ComponentManagerBroker.cs
- CodeBinaryOperatorExpression.cs
- DataBoundControlAdapter.cs
- ActiveXSite.cs
- TableLayoutCellPaintEventArgs.cs
- EntityCollectionChangedParams.cs
- DataGridViewElement.cs
- DataBoundControlAdapter.cs
- BitmapEffect.cs
- EqualityArray.cs
- DoubleMinMaxAggregationOperator.cs
- DataListCommandEventArgs.cs
- Events.cs
- BufferAllocator.cs
- CombinedGeometry.cs