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
- DeviceContexts.cs
- GridViewAutomationPeer.cs
- GenericTypeParameterBuilder.cs
- HostingEnvironmentException.cs
- Camera.cs
- ObjectQueryProvider.cs
- DynamicScriptObject.cs
- StorageInfo.cs
- XPathNodeIterator.cs
- CacheOutputQuery.cs
- ResourceDescriptionAttribute.cs
- SharedPersonalizationStateInfo.cs
- CodeMemberMethod.cs
- Math.cs
- DataGridViewColumnHeaderCell.cs
- Double.cs
- ECDsaCng.cs
- ProcessHostFactoryHelper.cs
- MonitorWrapper.cs
- TreeViewCancelEvent.cs
- WebPartsPersonalizationAuthorization.cs
- NativeCompoundFileAPIs.cs
- DbMetaDataCollectionNames.cs
- PasswordTextContainer.cs
- SrgsElementFactoryCompiler.cs
- Rijndael.cs
- IsolatedStorageFileStream.cs
- RemoteWebConfigurationHostServer.cs
- ProtocolImporter.cs
- BooleanToVisibilityConverter.cs
- DataControlHelper.cs
- IItemContainerGenerator.cs
- SemanticResultValue.cs
- BamlReader.cs
- Frame.cs
- X509Utils.cs
- ResourcePermissionBase.cs
- Win32NamedPipes.cs
- SizeConverter.cs
- BackgroundWorker.cs
- TextRunCache.cs
- ByteAnimationUsingKeyFrames.cs
- AlternateViewCollection.cs
- TypeToArgumentTypeConverter.cs
- MarkupProperty.cs
- InvokeBinder.cs
- PropertyGridDesigner.cs
- wgx_commands.cs
- MultilineStringConverter.cs
- TimersDescriptionAttribute.cs
- SupportingTokenAuthenticatorSpecification.cs
- TextElementCollection.cs
- Drawing.cs
- SchemaCreator.cs
- SetUserPreferenceRequest.cs
- RuleElement.cs
- SizeAnimationClockResource.cs
- EntryPointNotFoundException.cs
- DesignOnlyAttribute.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- IPEndPointCollection.cs
- EditorPart.cs
- SplashScreen.cs
- StandardCommands.cs
- CompiledRegexRunnerFactory.cs
- AuthenticationConfig.cs
- Menu.cs
- EntityCommandDefinition.cs
- Italic.cs
- Command.cs
- SharedConnectionWorkflowTransactionService.cs
- JumpItem.cs
- EventLogPermissionEntryCollection.cs
- UrlPath.cs
- FontClient.cs
- WebBrowserDesigner.cs
- MouseGesture.cs
- TextBox.cs
- WindowsScrollBar.cs
- InkCanvasAutomationPeer.cs
- TimelineClockCollection.cs
- StateManagedCollection.cs
- CanExpandCollapseAllConverter.cs
- DefinitionUpdate.cs
- WebPartZoneCollection.cs
- Exceptions.cs
- PeerNameRegistration.cs
- MDIClient.cs
- DataGridClipboardHelper.cs
- RadioButton.cs
- Stylesheet.cs
- HealthMonitoringSectionHelper.cs
- BindingWorker.cs
- BamlBinaryWriter.cs
- GenericWebPart.cs
- TemplateField.cs
- TextSelection.cs
- SoapSchemaMember.cs
- XslAstAnalyzer.cs
- XsltContext.cs