Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / XmlHierarchicalEnumerable.cs / 1305376 / XmlHierarchicalEnumerable.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing.Design; using System.Text; using System.Web; using System.Web.UI; using System.Xml; ////// An enumerable representing a single level of an XmlHierarchicalDataSourceView. /// internal sealed class XmlHierarchicalEnumerable : IHierarchicalEnumerable { private string _path; private XmlNodeList _nodeList; ////// Creates a new instance of XmlHierarchicalEnumerable. /// internal XmlHierarchicalEnumerable(XmlNodeList nodeList) { _nodeList = nodeList; } internal string Path { get { return _path; } set { _path = value; } } IEnumerator IEnumerable.GetEnumerator() { foreach (XmlNode node in _nodeList) { if (node.NodeType == XmlNodeType.Element) { yield return new XmlHierarchyData(this, node); } } } IHierarchyData IHierarchicalEnumerable.GetHierarchyData(object enumeratedItem) { return (IHierarchyData)enumeratedItem; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LiteralSubsegment.cs
- UIAgentInitializationException.cs
- BooleanStorage.cs
- SelectionItemProviderWrapper.cs
- SystemColors.cs
- FontStyleConverter.cs
- NewArrayExpression.cs
- JoinGraph.cs
- PropertySegmentSerializationProvider.cs
- FamilyTypeface.cs
- EntityDataSourceState.cs
- LineUtil.cs
- XmlByteStreamReader.cs
- Cell.cs
- XmlLanguageConverter.cs
- infer.cs
- Imaging.cs
- XamlSerializerUtil.cs
- PasswordRecoveryDesigner.cs
- SetIterators.cs
- ConfigurationSection.cs
- Wildcard.cs
- TextRangeSerialization.cs
- DataContractSet.cs
- GenericParameterDataContract.cs
- ReturnEventArgs.cs
- AttributeXamlType.cs
- MouseButton.cs
- ReferenceEqualityComparer.cs
- ToolBar.cs
- CollectionViewProxy.cs
- HtmlContainerControl.cs
- PanelStyle.cs
- CookielessHelper.cs
- WebPartDisplayModeCollection.cs
- PersonalizationState.cs
- PageHandlerFactory.cs
- MarshalByRefObject.cs
- SimpleApplicationHost.cs
- TimerElapsedEvenArgs.cs
- MouseActionConverter.cs
- RangeValidator.cs
- SqlStatistics.cs
- SoapHttpTransportImporter.cs
- ValidateNames.cs
- XamlFilter.cs
- CommandEventArgs.cs
- DictionaryItemsCollection.cs
- COMException.cs
- DeploymentSectionCache.cs
- TCPListener.cs
- SHA256Managed.cs
- TextTrailingCharacterEllipsis.cs
- UriTemplateClientFormatter.cs
- ObjectConverter.cs
- PerfCounters.cs
- PipelineModuleStepContainer.cs
- Visual3D.cs
- Utils.cs
- OletxCommittableTransaction.cs
- GenericEnumerator.cs
- LinearGradientBrush.cs
- NetMsmqBindingElement.cs
- NaturalLanguageHyphenator.cs
- IPipelineRuntime.cs
- TableCellCollection.cs
- BodyGlyph.cs
- Stylus.cs
- XmlWrappingReader.cs
- ButtonBaseAdapter.cs
- TextCharacters.cs
- _ServiceNameStore.cs
- XsdBuildProvider.cs
- MexServiceChannelBuilder.cs
- Clipboard.cs
- CursorConverter.cs
- ScriptResourceInfo.cs
- Win32Native.cs
- ToolStripControlHost.cs
- ShaderRenderModeValidation.cs
- OpCodes.cs
- UriTemplate.cs
- _TransmitFileOverlappedAsyncResult.cs
- AnonymousIdentificationModule.cs
- BeginStoryboard.cs
- NamespaceCollection.cs
- TypeGeneratedEventArgs.cs
- LabelAutomationPeer.cs
- PersonalizationProvider.cs
- BinaryUtilClasses.cs
- DesignerContextDescriptor.cs
- TimeSpanValidatorAttribute.cs
- CounterSample.cs
- XmlValidatingReader.cs
- ErrorEventArgs.cs
- ConstantCheck.cs
- InternalBase.cs
- ScrollProviderWrapper.cs
- BindingsCollection.cs
- GridLengthConverter.cs