Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / Runtime / XmlIterators.cs / 1305376 / XmlIterators.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.Xml; using System.Xml.XPath; using System.ComponentModel; namespace System.Xml.Xsl.Runtime { ////// Iterators that use containment to control a nested iterator return one of the following values from MoveNext(). /// [EditorBrowsable(EditorBrowsableState.Never)] public enum IteratorResult { NoMoreNodes, // Iteration is complete; there are no more nodes NeedInputNode, // The next node needs to be fetched from the contained iterator before iteration can continue HaveCurrentNode, // This iterator's Current property is set to the next node in the iteration }; ////// Tokenize a string containing IDREF values and deref the values in order to get a list of ID elements. /// [EditorBrowsable(EditorBrowsableState.Never)] public struct IdIterator { private XPathNavigator navCurrent; private string[] idrefs; private int idx; public void Create(XPathNavigator context, string value) { this.navCurrent = XmlQueryRuntime.SyncToNavigator(this.navCurrent, context); this.idrefs = XmlConvert.SplitString(value); this.idx = -1; } public bool MoveNext() { do { this.idx++; if (this.idx >= idrefs.Length) return false; } while (!this.navCurrent.MoveToId(this.idrefs[this.idx])); return true; } ////// Return the current result navigator. This is only defined after MoveNext() has returned true. /// public XPathNavigator Current { get { return this.navCurrent; } } } } // 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
- ReachObjectContext.cs
- storagemappingitemcollection.viewdictionary.cs
- AutomationEventArgs.cs
- GlobalizationAssembly.cs
- QuaternionAnimation.cs
- EventMappingSettingsCollection.cs
- HtmlMobileTextWriter.cs
- UnsafeNativeMethods.cs
- UriSection.cs
- ReadOnlyPropertyMetadata.cs
- FormattedText.cs
- ImageAttributes.cs
- CellLabel.cs
- SamlConditions.cs
- WindowsFont.cs
- embossbitmapeffect.cs
- ListControl.cs
- LocalClientSecuritySettingsElement.cs
- HMACSHA512.cs
- DataGridCheckBoxColumn.cs
- DirectionalLight.cs
- Track.cs
- TextBoxBase.cs
- DtdParser.cs
- TdsParameterSetter.cs
- ImportCatalogPart.cs
- AttributeAction.cs
- AccessText.cs
- SingleAnimationUsingKeyFrames.cs
- UriTemplateHelpers.cs
- AppDomainUnloadedException.cs
- BaseCodePageEncoding.cs
- TextProperties.cs
- ThreadStateException.cs
- ComplexBindingPropertiesAttribute.cs
- FilteredDataSetHelper.cs
- TypeDelegator.cs
- ExeConfigurationFileMap.cs
- XmlSerializerSection.cs
- SafePEFileHandle.cs
- WorkflowQueuingService.cs
- MulticastOption.cs
- SoapInteropTypes.cs
- KeyedQueue.cs
- ExpressionList.cs
- DirectoryRootQuery.cs
- PropertyMetadata.cs
- ConfigPathUtility.cs
- Win32KeyboardDevice.cs
- SerializableAttribute.cs
- SystemResourceHost.cs
- ListViewUpdatedEventArgs.cs
- ZipPackagePart.cs
- ObjectPersistData.cs
- SchemaNamespaceManager.cs
- MeasureItemEvent.cs
- SessionStateSection.cs
- X509ServiceCertificateAuthenticationElement.cs
- GridEntryCollection.cs
- MatrixConverter.cs
- Error.cs
- HtmlElement.cs
- UrlPath.cs
- GenericUI.cs
- Size.cs
- DataSetViewSchema.cs
- WorkflowServiceHostFactory.cs
- EncodingInfo.cs
- TransactionsSectionGroup.cs
- RenamedEventArgs.cs
- SmiEventStream.cs
- LoginView.cs
- AppSettingsSection.cs
- MgmtConfigurationRecord.cs
- NumericExpr.cs
- VersionPair.cs
- StringDictionary.cs
- CustomActivityDesigner.cs
- FileLoadException.cs
- AnnotationResourceCollection.cs
- AppDomainShutdownMonitor.cs
- Span.cs
- followingsibling.cs
- FormViewDeleteEventArgs.cs
- SqlHelper.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MD5Cng.cs
- ScaleTransform.cs
- ViewLoader.cs
- DESCryptoServiceProvider.cs
- DataFormats.cs
- PageRanges.cs
- coordinator.cs
- IriParsingElement.cs
- ServiceParser.cs
- CodeSnippetExpression.cs
- DynamicMetaObjectBinder.cs
- XmlSchemaType.cs
- XmlAtomicValue.cs
- DbExpressionBuilder.cs