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
- RawStylusInputCustomDataList.cs
- EventLogException.cs
- RegexCode.cs
- MarkupProperty.cs
- DialogResultConverter.cs
- DeviceContexts.cs
- OutputCacheModule.cs
- JsonFormatWriterGenerator.cs
- typedescriptorpermissionattribute.cs
- HierarchicalDataBoundControlAdapter.cs
- KeyFrames.cs
- JavaScriptString.cs
- GenericPrincipal.cs
- ExceptionUtil.cs
- ProcessModelSection.cs
- HashAlgorithm.cs
- SqlGatherConsumedAliases.cs
- RecordBuilder.cs
- _ConnectOverlappedAsyncResult.cs
- X509Certificate2.cs
- UIntPtr.cs
- StdValidatorsAndConverters.cs
- DataGridLength.cs
- UnmanagedMarshal.cs
- Trace.cs
- RelationshipSet.cs
- ConfigXmlWhitespace.cs
- ScaleTransform.cs
- BitmapEffectInputData.cs
- _Connection.cs
- ServiceDesigner.cs
- SubpageParaClient.cs
- GridSplitterAutomationPeer.cs
- EventLogPermissionEntryCollection.cs
- Console.cs
- ToolboxItemSnapLineBehavior.cs
- TextComposition.cs
- _LocalDataStoreMgr.cs
- TextProviderWrapper.cs
- AutomationPattern.cs
- AssertSection.cs
- SerialReceived.cs
- XmlSchemaSimpleContentRestriction.cs
- LowerCaseStringConverter.cs
- MultipleViewPattern.cs
- RelationshipEndMember.cs
- DbLambda.cs
- ThumbButtonInfoCollection.cs
- ByteAnimationBase.cs
- Int32CAMarshaler.cs
- ResourceAssociationTypeEnd.cs
- HttpHeaderCollection.cs
- RuntimeCompatibilityAttribute.cs
- TemplateControlParser.cs
- QueryExpr.cs
- AsyncDataRequest.cs
- TargetControlTypeCache.cs
- webbrowsersite.cs
- ColorPalette.cs
- TextTreeUndo.cs
- CodeGen.cs
- SQLCharsStorage.cs
- EntityType.cs
- Workspace.cs
- MaskDesignerDialog.cs
- OutputCacheSettingsSection.cs
- DbConnectionStringBuilder.cs
- SafeHandles.cs
- FatalException.cs
- SimpleColumnProvider.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- HMACRIPEMD160.cs
- TemplateInstanceAttribute.cs
- BrushMappingModeValidation.cs
- XmlSchemaNotation.cs
- StateItem.cs
- DataContract.cs
- FolderLevelBuildProviderCollection.cs
- WindowsNonControl.cs
- NameValueFileSectionHandler.cs
- Attachment.cs
- StorageEntityContainerMapping.cs
- TreeNodeClickEventArgs.cs
- URLBuilder.cs
- FixedSOMTable.cs
- InkSerializer.cs
- MinMaxParagraphWidth.cs
- SpeakInfo.cs
- ObjectDataSourceMethodEventArgs.cs
- Point3D.cs
- Duration.cs
- ToolStripContainer.cs
- ResXResourceSet.cs
- MenuItem.cs
- FixedSOMImage.cs
- ThreadAbortException.cs
- DelegatingTypeDescriptionProvider.cs
- XmlDeclaration.cs
- CheckoutException.cs
- ExecutionContext.cs